Get the password from keystone, not glance for leader-settings.

This commit is contained in:
Alex Kavanagh
2023-02-21 15:57:37 +00:00
parent 120a495f6f
commit 4f1b0fc09f

View File

@@ -203,7 +203,8 @@ class CharmOperationTest(BaseKeystoneTest):
'{} is not deployed, so not doing password change'
.format(GLANCE_APP))
# keep the old password to verify it is changed.
old_passwd = juju_utils.leader_get(GLANCE_APP, GLANCE_PASSWD_KEY)
old_passwd = juju_utils.leader_get(
self.application_name, GLANCE_PASSWD_KEY)
# verify that images can be listed.
glance_client = openstack_utils.get_glance_session_client(
@@ -218,7 +219,8 @@ class CharmOperationTest(BaseKeystoneTest):
)
# verify that the password has changed
new_passwd = juju_utils.leader_get(GLANCE_APP, GLANCE_PASSWD_KEY)
new_passwd = juju_utils.leader_get(
self.application_name, GLANCE_PASSWD_KEY)
self.assertNotEqual(old_passwd, new_passwd)
# verify that the images can still be listed.