From fa6df2b0095450c125950265eb4949718528def9 Mon Sep 17 00:00:00 2001 From: Judit Novak Date: Sat, 15 Jul 2023 13:55:15 +0200 Subject: [PATCH] Test changes required after adjustments requested on PR --- tests/integration/test_charm.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/integration/test_charm.py b/tests/integration/test_charm.py index ee569907b..340df3b72 100644 --- a/tests/integration/test_charm.py +++ b/tests/integration/test_charm.py @@ -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") @@ -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