From 140805d321305d047deaad43a725e4c9bec40dff Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Wed, 29 Mar 2023 12:24:35 +0100 Subject: [PATCH] Fix handling of usernames in password rotation mysql test This patch ensures that the usernames are parsed correctly from the action to ensure that the usernames are handled correctly. --- zaza/openstack/charm_tests/mysql/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/mysql/tests.py b/zaza/openstack/charm_tests/mysql/tests.py index 8039338..e7ab003 100644 --- a/zaza/openstack/charm_tests/mysql/tests.py +++ b/zaza/openstack/charm_tests/mysql/tests.py @@ -615,7 +615,7 @@ class MySQLInnoDBClusterRotatePasswordTests(MySQLCommonTests): 'list-service-usernames', action_params={} ) - usernames = action.data['results']['usernames'] + usernames = action.data['results']['usernames'].split(',') self.assertIn('keystone', usernames) logging.info("... usernames: %s", ', '.join(usernames))