Merge "Replace the usage of some aliases in tempest"

This commit is contained in:
Zuul 2017-11-20 03:56:28 +00:00 committed by Gerrit Code Review
commit 40e98660f7
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')