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:
Nguyen Van Trung 2017-11-13 14:24:59 +07:00
parent 0c720cc102
commit 9ce4da82c2
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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')