From 518ad1e201389ecef17c0770a94793315d0d0fd7 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 21 Jun 2018 18:11:09 +0200 Subject: Add the Barbican test suite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It eases verifying the functionality of a barbican installation. Change-Id: Iac2144ae6ba4d61b2b37bb5c7a0359edb3f222a6 Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/openstack/tempest/tempest.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'functest/opnfv_tests/openstack/tempest/tempest.py') 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): -- cgit 1.2.3-korg