summaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/shaker/shaker.py
diff options
context:
space:
mode:
Diffstat (limited to 'functest/opnfv_tests/openstack/shaker/shaker.py')
-rw-r--r--functest/opnfv_tests/openstack/shaker/shaker.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/shaker/shaker.py b/functest/opnfv_tests/openstack/shaker/shaker.py
index 1170fede3..95e10022f 100644
--- a/functest/opnfv_tests/openstack/shaker/shaker.py
+++ b/functest/opnfv_tests/openstack/shaker/shaker.py
@@ -44,6 +44,12 @@ class Shaker(singlevm.SingleVm2):
super(Shaker, self).__init__(**kwargs)
self.role = None
+ def check_requirements(self):
+ if len(self.orig_cloud.list_hypervisors()) < 2:
+ self.__logger.warning("Shaker requires at least 2 hypervisors")
+ self.is_skipped = True
+ self.project.clean()
+
def prepare(self):
super(Shaker, self).prepare()
self.cloud.create_security_group_rule(