Fix secret-stores functional tests
This patch fixes some broken tests that were incorrectly looking for a "secret-stores" key in API responses. The correct key is "secret_stores". Change-Id: Ia42d14a1163f53d220e243ae0ecd5138e278db14
This commit is contained in:
parent
6dc5259012
commit
8eeff8d03e
|
@ -1613,7 +1613,7 @@ class SecretsMultipleBackendTestCase(base.TestCase):
|
|||
user_name=admin_a)
|
||||
self.assertEqual(200, resp.status_code)
|
||||
secret_store_ref = None
|
||||
for store in stores['secret-stores']:
|
||||
for store in stores['secret_stores']:
|
||||
if not store['global_default']:
|
||||
secret_store_ref = store['secret_store_ref']
|
||||
break
|
||||
|
|
|
@ -78,8 +78,8 @@ class SecretStoresTestCase(base.TestCase):
|
|||
|
||||
self.assertEqual(expected_return, resp.status_code)
|
||||
if expected_return == 200:
|
||||
self.assertIsNotNone(json_data['secret-stores'])
|
||||
stores = json_data['secret-stores']
|
||||
self.assertIsNotNone(json_data.get('secret_stores'))
|
||||
stores = json_data['secret_stores']
|
||||
for secret_store in stores:
|
||||
self._validate_secret_store_fields(secret_store)
|
||||
|
||||
|
@ -125,7 +125,7 @@ class SecretStoresTestCase(base.TestCase):
|
|||
user_name=admin_a)
|
||||
self.assertEqual(200, resp.status_code)
|
||||
|
||||
stores = json_data['secret-stores']
|
||||
stores = json_data['secret_stores']
|
||||
|
||||
store = stores[len(stores)-1]
|
||||
secret_store_ref = store['secret_store_ref']
|
||||
|
@ -191,7 +191,7 @@ class SecretStoresTestCase(base.TestCase):
|
|||
user_name=admin_a)
|
||||
self.assertEqual(200, resp.status_code)
|
||||
|
||||
stores = json_data['secret-stores']
|
||||
stores = json_data['secret_stores']
|
||||
|
||||
store = stores[len(stores)-1]
|
||||
secret_store_ref = store['secret_store_ref']
|
||||
|
|
Loading…
Reference in New Issue