Fix handling of usernames in rabbitmq password rotation test

The usernames were not handled correctly.  The return value from looking
up the action value is a string, and so it needs to be split on ','.
This commit is contained in:
Alex Kavanagh
2023-03-29 12:26:22 +01:00
parent d964696f48
commit 17c0de8810
@@ -517,7 +517,7 @@ class RmqRotateServiceUserPasswordTests(test_utils.OpenStackBaseTest):
'list-service-usernames',
action_params={}
)
usernames = action.data['results']['usernames']
usernames = action.data['results']['usernames'].split(',')
self.assertIn(CINDER_APP, usernames)
logging.info("... usernames: %s", ', '.join(usernames))