Browse Source

Fix the usage of tempest.client.Manager class

This should fix our gate. We should continue the work to remove
the dependencies from any module that isn't at tempest.lib.

Change-Id: I2158d1971a4187171a89169c3f324453f0ec13be
changes/30/417030/1
Rodrigo Duarte 5 years ago
parent
commit
f19f131b57
  1. 4
      keystone_tempest_plugin/clients.py
  2. 2
      keystone_tempest_plugin/tests/base.py

4
keystone_tempest_plugin/clients.py

@ -26,8 +26,8 @@ from tempest import clients
class Manager(clients.Manager):
def __init__(self, credentials, service=None):
super(Manager, self).__init__(credentials, service)
def __init__(self, credentials):
super(Manager, self).__init__(credentials)
self.auth_client = auth_client.AuthClient(self.auth_provider)
self.identity_providers_client = (

2
keystone_tempest_plugin/tests/base.py

@ -32,7 +32,7 @@ class BaseIdentityTest(test.BaseTestCase):
super(BaseIdentityTest, cls).setup_clients()
credentials = common_creds.get_configured_admin_credentials(
cls.credential_type, identity_version=cls.identity_version)
cls.keystone_manager = clients.Manager(credentials=credentials)
cls.keystone_manager = clients.Manager(credentials)
cls.auth_client = cls.keystone_manager.auth_client
cls.idps_client = cls.keystone_manager.identity_providers_client
cls.mappings_client = cls.keystone_manager.mapping_rules_client

Loading…
Cancel
Save