Skip to content

Commit

Permalink
Test changes required after adjustments requested on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
juditnovak committed Jul 20, 2023
1 parent 2ab3324 commit fa6df2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ async def test_reset_and_get_password_secret_same_as_cli(ops_test: OpsTest) -> N
ops_test, unit_id=leader_id, username="monitor", password=new_password
)

# Chopping off initial 'secret:' from the ID
secret_id = result["secret-id"].split(":")[1]
secret_id = result["secret-id"].split("/")[-1]

# Getting back the pw programmatically
password = await get_password(ops_test, unit_id=leader_id, username="monitor")
Expand All @@ -157,7 +156,6 @@ async def test_reset_and_get_password_secret_same_as_cli(ops_test: OpsTest) -> N
data = json.loads(stdout)

assert password == new_password
assert data[secret_id]["label"] == "mongodb-k8s:internal-secret"
assert data[secret_id]["content"]["Data"]["monitor-password"] == password


Expand Down

0 comments on commit fa6df2b

Please sign in to comment.