summaryrefslogtreecommitdiff
path: root/tempest/api/data_processing/base.py
diff options
context:
space:
mode:
authorAndrea Frittoli <andrea.frittoli@hp.com>2015-02-06 20:12:38 +0000
committerAndrea Frittoli <andrea.frittoli@hp.com>2015-04-27 15:23:13 +0100
commitb21de6ce451272dfbc418d1aa2bfc6bb46d510ef (patch)
treea6788e0f85df74973adf4c45ed024bebd3b73eba /tempest/api/data_processing/base.py
parent7f63f7d3835a5d6fb468a4759ca31ecc4cb105cc (diff)
downloadtempest-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/api/data_processing/base.py')
-rw-r--r--tempest/api/data_processing/base.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tempest/api/data_processing/base.py b/tempest/api/data_processing/base.py
index 5a903b738..904cbb6db 100644
--- a/tempest/api/data_processing/base.py
+++ b/tempest/api/data_processing/base.py
@@ -225,6 +225,8 @@ DEFAULT_TEMPLATES = {
class BaseDataProcessingTest(tempest.test.BaseTestCase):
+ credentials = ['primary']
+
@classmethod
def skip_checks(cls):
super(BaseDataProcessingTest, cls).skip_checks()
@@ -233,11 +235,6 @@ class BaseDataProcessingTest(tempest.test.BaseTestCase):
cls.default_plugin = cls._get_default_plugin()
@classmethod
- def setup_credentials(cls):
- super(BaseDataProcessingTest, cls).setup_credentials()
- cls.os = cls.get_client_manager()
-
- @classmethod
def setup_clients(cls):
super(BaseDataProcessingTest, cls).setup_clients()
cls.client = cls.os.data_processing_client