Replace the usage of some aliases in tempest
In tempest, following aliases have been moved in version Pike and will be removed in version Queens: * admin_manager > os_admin Change-Id: Ia992fd686025ec1ab69a76bb3bbb9d58e0094bff
This commit is contained in:
parent
0c720cc102
commit
9ce4da82c2
|
@ -45,7 +45,7 @@ class TestHA(manager_congress.ScenarioPolicyBase):
|
|||
self.replicas = {}
|
||||
self.services_client = self.os_admin.identity_services_v3_client
|
||||
self.endpoints_client = self.os_admin.endpoints_v3_client
|
||||
self.client = self.admin_manager.congress_client
|
||||
self.client = self.os_admin.congress_client
|
||||
|
||||
def _prepare_replica(self, port_num):
|
||||
replica_url = "http://127.0.0.1:%d" % port_num
|
||||
|
|
|
@ -249,12 +249,12 @@ class TestPolicyLibraryBasicOps(manager_congress.ScenarioPolicyBase):
|
|||
# because it depends on datasources not available in gate
|
||||
skip_names_list = []
|
||||
|
||||
response = self.admin_manager.congress_client.list_library_policy()
|
||||
response = self.os_admin.congress_client.list_library_policy()
|
||||
library_policies = response['results']
|
||||
|
||||
for library_policy in library_policies:
|
||||
if library_policy['name'] not in skip_names_list:
|
||||
resp = self.admin_manager.congress_client.create_policy(
|
||||
resp = self.os_admin.congress_client.create_policy(
|
||||
body=None, params={'library_policy': library_policy['id']})
|
||||
self.assertEqual(resp.response['status'], '201',
|
||||
'Policy activation failed')
|
||||
|
|
Loading…
Reference in New Issue