aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docker/smoke/testcases.yaml2
-rw-r--r--functest/ci/testcases.yaml2
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py12
-rw-r--r--setup.cfg1
4 files changed, 15 insertions, 2 deletions
diff --git a/docker/smoke/testcases.yaml b/docker/smoke/testcases.yaml
index 5b6454ca4..4fa5aaeae 100644
--- a/docker/smoke/testcases.yaml
+++ b/docker/smoke/testcases.yaml
@@ -80,7 +80,7 @@ tiers:
the OpenStack deployment.
https://github.com/openstack/tempest/blob/18.0.0/tox.ini#L84
run:
- name: tempest_common
+ name: tempest_scenario
args:
mode: '(?!.*\[.*\bslow\b.*\])(^tempest\.scenario)'
option:
diff --git a/functest/ci/testcases.yaml b/functest/ci/testcases.yaml
index 6a8be8b64..5cb5a56fd 100644
--- a/functest/ci/testcases.yaml
+++ b/functest/ci/testcases.yaml
@@ -243,7 +243,7 @@ tiers:
the OpenStack deployment.
https://github.com/openstack/tempest/blob/18.0.0/tox.ini#L84
run:
- name: tempest_common
+ name: tempest_scenario
args:
mode: '(?!.*\[.*\bslow\b.*\])(^tempest\.scenario)'
option:
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py
index 9c84cdc82..faf2ab5ca 100644
--- a/functest/opnfv_tests/openstack/tempest/tempest.py
+++ b/functest/opnfv_tests/openstack/tempest/tempest.py
@@ -638,3 +638,15 @@ class TempestCommon(singlevm.VmReady2):
if skips > 0 and self.deny_skipping:
return testcase.TestCase.EX_TESTCASE_FAILED
return super(TempestCommon, self).is_successful()
+
+
+class TempestScenario(TempestCommon):
+ """Tempest scenario testcase implementation class."""
+
+ quota_instances = -1
+
+ def run(self, **kwargs):
+ self.orig_cloud.set_compute_quotas(
+ self.project.project.name,
+ instances=self.quota_instances)
+ return super(TempestScenario, self).run(**kwargs)
diff --git a/setup.cfg b/setup.cfg
index 4c63e20aa..7a7c41d61 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -26,6 +26,7 @@ xtesting.testcase =
cinder_test = functest.opnfv_tests.openstack.cinder.cinder_test:CinderCheck
odl = functest.opnfv_tests.sdn.odl.odl:ODLTests
tempest_common = functest.opnfv_tests.openstack.tempest.tempest:TempestCommon
+ tempest_scenario = functest.opnfv_tests.openstack.tempest.tempest:TempestScenario
rally_sanity = functest.opnfv_tests.openstack.rally.rally:RallySanity
refstack_defcore = functest.opnfv_tests.openstack.refstack.refstack:Refstack
patrole = functest.opnfv_tests.openstack.patrole.patrole:Patrole