Fix gate failure - Use tenants_client

Tempest splitted out the tenants client from the existing identity
client of keystone in commit Ib164a108e2fea2c7c28d3a43b96c2881733bf34d .
This commit is to use the tenants client in
respective tests.

Change-Id: If04d97532c705547589c0cac7519295a1e050ce4
This commit is contained in:
Anusha Ramineni 2015-12-16 11:37:35 +05:30
parent 0c30a37c05
commit f4466ad752
1 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ class TestKeystoneV2Driver(manager_congress.ScenarioPolicyBase):
super(TestKeystoneV2Driver, cls).setUp()
cls.os = clients.Manager(cls.admin_manager.auth_provider.credentials)
cls.keystone = cls.os.identity_client
cls.tenants_client = cls.os.tenants_client
cls.datasource_id = manager_congress.get_datasource_id(
cls.admin_manager.congress_client, 'keystone')
@ -133,7 +134,7 @@ class TestKeystoneV2Driver(manager_congress.ScenarioPolicyBase):
def _check_data_table_keystone_tenants():
# Fetch data from keystone each time, because this test may start
# before keystone has all the users.
tenants = self.keystone.list_tenants()['tenants']
tenants = self.tenants_client.list_tenants()['tenants']
tenants_map = {}
for tenant in tenants:
tenants_map[tenant['id']] = tenant