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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user