aboutsummaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-06-21 18:11:09 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-06-21 21:08:01 +0200
commit518ad1e201389ecef17c0770a94793315d0d0fd7 (patch)
treef6f42721834b395c4427e6dd15c995d431d7cefb /functest
parentc510c3f912fe095af08705eb694bb1f0a226f38c (diff)
Add the Barbican test suite
It eases verifying the functionality of a barbican installation. Change-Id: Iac2144ae6ba4d61b2b37bb5c7a0359edb3f222a6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest')
-rw-r--r--functest/ci/testcases.yaml15
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py18
2 files changed, 33 insertions, 0 deletions
diff --git a/functest/ci/testcases.yaml b/functest/ci/testcases.yaml
index caf8ca3da..53641af47 100644
--- a/functest/ci/testcases.yaml
+++ b/functest/ci/testcases.yaml
@@ -329,6 +329,21 @@ tiers:
module: 'functest.opnfv_tests.openstack.tempest.tempest'
class: 'TempestNeutronTrunk'
+ -
+ case_name: barbican
+ project_name: functest
+ criteria: 100
+ blocking: false
+ description: >-
+ It leverages on the tempest plugin containing tests used to
+ verify the functionality of a barbican installation
+ dependencies:
+ installer: '^((?!fuel|apex|compass|daisy).)*$'
+ scenario: ''
+ run:
+ module: 'functest.opnfv_tests.openstack.tempest.tempest'
+ class: 'TempestBarbican'
+
-
name: features
order: 2
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py
index d51337a1e..e6dc77fcb 100644
--- a/functest/opnfv_tests/openstack/tempest/tempest.py
+++ b/functest/opnfv_tests/openstack/tempest/tempest.py
@@ -321,6 +321,24 @@ class TempestNeutronTrunk(TempestCommon):
rconfig.write(config_file)
+class TempestBarbican(TempestCommon):
+ """Tempest Barbican testcase implementation."""
+ def __init__(self, **kwargs):
+ if "case_name" not in kwargs:
+ kwargs["case_name"] = 'barbican'
+ TempestCommon.__init__(self, **kwargs)
+ self.mode = "'barbican_tempest_plugin.tests.(api|scenario)'"
+ self.res_dir = os.path.join(
+ getattr(config.CONF, 'dir_results'), 'barbican')
+ self.raw_list = os.path.join(self.res_dir, 'test_raw_list.txt')
+ self.list = os.path.join(self.res_dir, 'test_list.txt')
+
+ def generate_test_list(self):
+ self.backup_tempest_config(self.conf_file, '/etc')
+ super(TempestBarbican, self).generate_test_list()
+ os.remove('/etc/tempest.conf')
+
+
class TempestSmokeParallel(TempestCommon):
"""Tempest smoke parallel testcase implementation."""
def __init__(self, **kwargs):