diff options
author | Panagiotis Karalis <pkaralis@intracom-telecom.com> | 2018-02-23 14:56:25 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-03-13 16:36:08 +0100 |
commit | 0ce4ba21f5b934431adfa8a96f20065483a9f5c9 (patch) | |
tree | 9a7f128eb5c433fcdf0d6b6e63e3a9b872a8b6c2 /functest/opnfv_tests/openstack | |
parent | 632556645e8b3a4487c59e311e2cd43147c8d082 (diff) |
Implement trunk ports testcase
The tempest testcases have been integrated from Neutron trunk
testcases. It also enables every Neutron extension which may raise
side effects [1].
[1] https://docs.openstack.org/tempest/latest/sampleconf.html
JIRA: FUNCTEST-926
Change-Id: I05015acf119f504ce0a5539d677719de874594ad
Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
Diffstat (limited to 'functest/opnfv_tests/openstack')
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/conf_utils.py | 2 | ||||
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py index 6121ab970..b3d0d0139 100644 --- a/functest/opnfv_tests/openstack/tempest/conf_utils.py +++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py @@ -271,6 +271,8 @@ def configure_tempest_update_params(tempest_conf_file, res_dir, rconfig.set('identity', 'v3_endpoint_type', os.environ.get('OS_ENDPOINT_TYPE')) + rconfig.set('network-feature-enabled', 'api_extensions', 'all') + if os.environ.get('OS_ENDPOINT_TYPE') is not None: sections = rconfig.sections() services_list = [ diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index 1d85e689a..059def384 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -289,6 +289,19 @@ class TempestSmokeSerial(TempestCommon): self.option = ["--concurrency", "1"] +class TempestNeutronTrunk(TempestCommon): + """Tempest neutron trunk testcase implementation.""" + def __init__(self, **kwargs): + if "case_name" not in kwargs: + kwargs["case_name"] = 'neutron_trunk' + TempestCommon.__init__(self, **kwargs) + self.mode = "'neutron.tests.tempest.(api|scenario).test_trunk'" + self.res_dir = os.path.join( + getattr(config.CONF, 'dir_results'), 'neutron_trunk') + self.raw_list = os.path.join(self.res_dir, 'test_raw_list.txt') + self.list = os.path.join(self.res_dir, 'test_list.txt') + + class TempestSmokeParallel(TempestCommon): """Tempest smoke parallel testcase implementation.""" def __init__(self, **kwargs): |