Add config entries to skip integration tests
This adds options to skip scenario and functional tests.
You can either skip the complete set of tests or list of specific
tests.
Following new config options are added:
`skip_scenario_tests` - Skip all scenario tests
`skip_functional_tests` - Skip all functional tests
`skip_functional_test_list` - List of functional tests to skip
`skip_scenario_test_list` - List of scenario tests to skip
`skip_test_stack_action_list` - List of actions in tests to skip
Change-Id: I7a5233f5db1f065ccee5a97408c72203c108a656
Depends-On: I25c5e853f0499b88f2803b077d19e132140908f1
diff --git a/scenario/scenario_base.py b/scenario/scenario_base.py
index dd25b89..e347e6a 100644
--- a/scenario/scenario_base.py
+++ b/scenario/scenario_base.py
@@ -18,6 +18,8 @@
def setUp(self):
super(ScenarioTestsBase, self).setUp()
+ self.check_skip_test()
+
self.client = self.orchestration_client
self.sub_dir = 'templates'
self.assign_keypair()
@@ -55,3 +57,10 @@
)
return stack_id
+
+ def check_skip_test(self):
+ test_name = self.__class__.__name__
+ test_skipped = (self.conf.skip_scenario_test_list and
+ test_name in self.conf.skip_scenario_test_list)
+ if self.conf.skip_scenario_tests or test_skipped:
+ self.skipTest('Test disabled in conf, skipping')