Gate: fix tempest config error

tempest removed username/password/project_name,
see I8c24cd17f643083dde71ab2bd2a38417c54aeccb for details.

Change-Id: I7a51fc83046b3c2bc095020378152266bc2d1990
This commit is contained in:
Eli Qiao 2016-05-24 20:40:23 +08:00 committed by Eli Qiao
parent 493c3f2e4e
commit 0d0cbb028f
1 changed files with 8 additions and 3 deletions

View File

@ -29,9 +29,14 @@ class Config(object):
@classmethod
def set_user_creds(cls, config):
# normal user creds
cls.user = CONF.identity.username
cls.passwd = CONF.identity.password
cls.tenant = CONF.identity.project_name
# Fixme(eliqiao): this is quick workaround to passing tempest
# legacy credentials provider is removed by tempest
# I8c24cd17f643083dde71ab2bd2a38417c54aeccb.
# TODO(eliqiao): find a way to using an accounts.yaml file
# check Ia5132c5cb32355d6f26b8acdd92a0e55a2c19f41
cls.user = CONF.auth.admin_username
cls.passwd = CONF.auth.admin_password
cls.tenant = CONF.auth.admin_project_name
@classmethod
def set_auth_version(cls, config):