diff options
author | Andrea Frittoli <andrea.frittoli@hp.com> | 2015-02-06 20:12:38 +0000 |
---|---|---|
committer | Andrea Frittoli <andrea.frittoli@hp.com> | 2015-04-27 15:23:13 +0100 |
commit | b21de6ce451272dfbc418d1aa2bfc6bb46d510ef (patch) | |
tree | a6788e0f85df74973adf4c45ed024bebd3b73eba /tempest/thirdparty | |
parent | 7f63f7d3835a5d6fb468a4759ca31ecc4cb105cc (diff) | |
download | tempest-b21de6ce451272dfbc418d1aa2bfc6bb46d510ef.tar.gz |
Initial class creds creation in test base class
Each test class may now define at class level which credentials
are needed, and they will be allocated automatically by the base
class. To start using this a test class that requires network
resources must implement the setup_credentials method and
define the required resources before super is invoked.
In this patch this only affects the creation of credentials
as defined in the various base classes. Other tests will be
migrated as part of the resource-cleanup bp. Note that this
changes baremetal, identity and orchestration tests to
honour the tenant isolation settings.
Partially-implements: bp resource-cleanup
Change-Id: Id36a6ebddb618a78cee7025c9537cd1e2746190e
Diffstat (limited to 'tempest/thirdparty')
-rw-r--r-- | tempest/thirdparty/boto/test.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tempest/thirdparty/boto/test.py b/tempest/thirdparty/boto/test.py index cd35e7f0a..2aef9109e 100644 --- a/tempest/thirdparty/boto/test.py +++ b/tempest/thirdparty/boto/test.py @@ -197,6 +197,8 @@ def friendly_function_call_str(call_able, *args, **kwargs): class BotoTestCase(tempest.test.BaseTestCase): """Recommended to use as base class for boto related test.""" + credentials = ['primary'] + @classmethod def skip_checks(cls): super(BotoTestCase, cls).skip_checks() @@ -207,11 +209,6 @@ class BotoTestCase(tempest.test.BaseTestCase): raise cls.skipException("Identity v2 is not available") @classmethod - def setup_credentials(cls): - super(BotoTestCase, cls).setup_credentials() - cls.os = cls.get_client_manager() - - @classmethod def resource_setup(cls): super(BotoTestCase, cls).resource_setup() cls.conclusion = decision_maker() |