Enable tempest run -l without credential setting

This commit moves the admin credential code to the initialization phase
of Manager class. This change enables to run `tempest run -l` without
credential settings. We shouldn't require like that settings to just
list tests.

Change-Id: Ib202880e7039113a58dc1596de54be4167c5307d
This commit is contained in:
Masayuki Igawa 2019-02-04 17:13:56 +09:00
parent 6fe29d2aed
commit 51266a5ed2
No known key found for this signature in database
GPG Key ID: 290F53EDC899BF89
1 changed files with 3 additions and 2 deletions

View File

@ -17,13 +17,14 @@ from tempest import config
CONF = config.CONF
ADMIN_CREDS = common_creds.get_configured_admin_credentials()
class Manager(clients.Manager):
def __init__(self,
credentials=ADMIN_CREDS,
credentials=None,
api_microversions=None):
if not credentials:
credentials = common_creds.get_configured_admin_credentials()
super(Manager, self).__init__(credentials)
self.introspection_client = BaremetalIntrospectionClient(
self.auth_provider,