Precise Tempest tests list 89/52289/3
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 19 Feb 2018 07:23:14 +0000 (08:23 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 19 Feb 2018 12:26:27 +0000 (13:26 +0100)
Else full mode could run tests defined in tempest plugins too [1].

[1] https://docs.openstack.org/tempest/latest/plugin-registry.html

Change-Id: I4355b03ba1b9ba47938f748c4f1a8822fd412142
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/opnfv_tests/openstack/tempest/tempest.py
functest/tests/unit/openstack/tempest/test_tempest.py

index 5148d11..105d165 100644 (file)
@@ -110,11 +110,11 @@ class TempestCommon(testcase.TestCase):
                                 % conf_utils.TEMPEST_CUSTOM)
         else:
             if self.mode == 'smoke':
-                testr_mode = "smoke"
+                testr_mode = r"'tempest\.(api|scenario).*\[.*\bsmoke\b.*\]'"
             elif self.mode == 'full':
-                testr_mode = ""
+                testr_mode = r"'^tempest\.'"
             else:
-                testr_mode = 'tempest.api.' + self.mode
+                testr_mode = self.mode
             cmd = ("cd {0};"
                    "testr list-tests {1} > {2};"
                    "cd -;".format(verifier_repo_dir,
index 060a8a0..c4c8a77 100644 (file)
@@ -83,9 +83,9 @@ class OSTempestTesting(unittest.TestCase):
     def _test_gen_tl_mode_default(self, mode):
         self.tempestcommon.mode = mode
         if self.tempestcommon.mode == 'smoke':
-            testr_mode = "smoke"
+            testr_mode = r"'tempest\.(api|scenario).*\[.*\bsmoke\b.*\]'"
         elif self.tempestcommon.mode == 'full':
-            testr_mode = ""
+            testr_mode = r"'^tempest\.'"
         else:
             testr_mode = 'tempest.api.' + self.tempestcommon.mode
         conf_utils.TEMPEST_RAW_LIST = 'raw_list'