aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-07-03 17:13:41 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-07-03 17:17:10 +0200
commit1fb6c3681c8e3b634b35be8b941c6ebefcabfdd2 (patch)
treeb1c83c833d43c1ddbda64c8ab878b5400256fdd6
parent379251bdc901fbeb99291b0f13e24270f559dd62 (diff)
min_computes_nodes is also used as max values
Its max value is now 10 according to the default quota. Change-Id: Ie7bfcb224e821c15d38d0cba1d9f080548613e79 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit f21f139f9d24d282310d0830a053169532e75596)
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py17
-rw-r--r--setup.cfg1
2 files changed, 2 insertions, 16 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py
index c6566cad6..37da36bf7 100644
--- a/functest/opnfv_tests/openstack/tempest/tempest.py
+++ b/functest/opnfv_tests/openstack/tempest/tempest.py
@@ -580,7 +580,8 @@ class TempestCommon(singlevm.VmReady2):
self.deployment_dir = self.get_verifier_deployment_dir(
self.verifier_id, self.deployment_id)
- compute_cnt = self.count_hypervisors()
+ compute_cnt = self.count_hypervisors() if self.count_hypervisors(
+ ) <= 10 else 10
self.image_alt = self.publish_image_alt()
self.flavor_alt = self.create_flavor_alt()
LOGGER.debug("flavor: %s", self.flavor_alt)
@@ -659,20 +660,6 @@ class TempestCommon(singlevm.VmReady2):
return super(TempestCommon, self).is_successful()
-class TempestScenario(TempestCommon):
- """Tempest scenario testcase implementation class."""
-
- quota_instances = -1
- quota_cores = -1
-
- def run(self, **kwargs):
- self.orig_cloud.set_compute_quotas(
- self.project.project.name,
- instances=self.quota_instances,
- cores=self.quota_cores)
- return super(TempestScenario, self).run(**kwargs)
-
-
class TempestHorizon(TempestCommon):
"""Tempest Horizon testcase implementation class."""
diff --git a/setup.cfg b/setup.cfg
index 2380c95d7..63c6d737a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -26,7 +26,6 @@ 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
tempest_horizon = functest.opnfv_tests.openstack.tempest.tempest:TempestHorizon
tempest_heat = functest.opnfv_tests.openstack.tempest.tempest:TempestHeat
rally_sanity = functest.opnfv_tests.openstack.rally.rally:RallySanity