diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-11-20 10:36:43 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-11-20 10:36:43 +0000 |
commit | 600d40a30548310b96ee08d5a7a9d3541ba93343 (patch) | |
tree | 7b81e9c169d011a20d5a649eab886348dfb7f3c3 | |
parent | 0fcf798ceeca5d72adb81ace698e25f1bd52c16e (diff) | |
parent | 074dee8c76130d46a77c7d31ea5ba24d554a5217 (diff) | |
download | tempest-8.tar.gz |
Merge "Skip test that rely on creds by role"8
-rw-r--r-- | tempest/common/credentials_factory.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tempest/common/credentials_factory.py b/tempest/common/credentials_factory.py index 75639b22b..38bde2e08 100644 --- a/tempest/common/credentials_factory.py +++ b/tempest/common/credentials_factory.py @@ -118,11 +118,11 @@ class LegacyCredentialProvider(cred_provider.CredentialProvider): raise exceptions.InvalidConfiguration(msg) def is_role_available(self, role): - msg = "Credentials being specified through the config file can not be"\ - " used with tests that specify using credentials by roles. "\ - "Either exclude/skip the tests doing this or use either an "\ - "test_accounts_file or dynamic credentials." - raise exceptions.InvalidConfiguration(msg) + # NOTE(andreaf) LegacyCredentialProvider does not support credentials + # by role, so returning always False. + # Test that rely on credentials by role should use this to skip + # when this is credential provider is used + return False # Return the right implementation of CredentialProvider based on config |