aboutsummaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-05-11 19:35:28 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-05-16 20:48:57 +0200
commitf19e3cc9053e8e64606b43d759b7ff019dbcd07a (patch)
tree81acc900ceb62b45800f07c3ab3445e6f6d5023e /functest
parent90389efe0257f730418181291b82dda9c390b953 (diff)
Add all RefStack lists
It adds platform and object targets. refstack_defcore is renamed to refstack_compute. Change-Id: Iad5bfb27be614aada98eef5b3148965e65210725 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit ce75381bdce754d40f632894f81a31ba6771a39f)
Diffstat (limited to 'functest')
-rw-r--r--functest/ci/testcases.yaml39
-rw-r--r--functest/opnfv_tests/openstack/refstack/refstack.py12
2 files changed, 42 insertions, 9 deletions
diff --git a/functest/ci/testcases.yaml b/functest/ci/testcases.yaml
index f88265178..24adbc49c 100644
--- a/functest/ci/testcases.yaml
+++ b/functest/ci/testcases.yaml
@@ -201,17 +201,50 @@ tiers:
- 'gnocchi'
-
- case_name: refstack_defcore
+ case_name: refstack_compute
project_name: functest
criteria: 100
blocking: false
deny_skipping: true
description: >-
This test case runs a sub group of tests of the OpenStack
- Defcore testcases.
+ Compute testcases.
run:
- name: refstack_defcore
+ name: refstack
args:
+ target: compute
+ option:
+ - '--concurrency=4'
+
+ -
+ case_name: refstack_object
+ project_name: functest
+ criteria: 100
+ blocking: false
+ deny_skipping: true
+ description: >-
+ This test case runs a sub group of tests of the OpenStack
+ Object testcases.
+ run:
+ name: refstack
+ args:
+ target: object
+ option:
+ - '--concurrency=4'
+
+ -
+ case_name: refstack_platform
+ project_name: functest
+ criteria: 100
+ blocking: false
+ deny_skipping: true
+ description: >-
+ This test case runs a sub group of tests of the OpenStack
+ Platform testcases.
+ run:
+ name: refstack
+ args:
+ target: platform
option:
- '--concurrency=4'
diff --git a/functest/opnfv_tests/openstack/refstack/refstack.py b/functest/opnfv_tests/openstack/refstack/refstack.py
index c709e5626..e80e5c202 100644
--- a/functest/opnfv_tests/openstack/refstack/refstack.py
+++ b/functest/opnfv_tests/openstack/refstack/refstack.py
@@ -24,12 +24,9 @@ class Refstack(tempest.TempestCommon):
__logger = logging.getLogger(__name__)
- defcorelist = os.path.join(
- getattr(config.CONF, 'dir_refstack_data'), 'defcore.txt')
-
- def _extract_refstack_data(self):
+ def _extract_refstack_data(self, refstack_list):
yaml_data = ""
- with open(self.defcorelist) as def_file:
+ with open(refstack_list) as def_file:
for line in def_file:
try:
grp = re.search(r'^([^\[]*)(\[.*\])\n*$', line)
@@ -63,8 +60,11 @@ class Refstack(tempest.TempestCommon):
return yaml.load(yaml_data2)
def generate_test_list(self, **kwargs):
+ refstack_list = os.path.join(
+ getattr(config.CONF, 'dir_refstack_data'),
+ "{}.txt".format(kwargs.get('target', 'compute')))
self.backup_tempest_config(self.conf_file, '/etc')
- refstack_data = self._extract_refstack_data()
+ refstack_data = self._extract_refstack_data(refstack_list)
tempest_data = self._extract_tempest_data()
with open(self.list, 'w') as ref_file:
for key in refstack_data.keys():