diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2017-12-20 18:00:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-20 18:00:35 +0000 |
commit | a53fd6452a077b1905ff8f5ae1d24bdd112f2f82 (patch) | |
tree | d2dba516e060185736fb78057731fead14a89c29 /functest | |
parent | 7510ff6e0e8e66fa6aa85bd7fb5e698ed66256d8 (diff) | |
parent | afa5e6098c7fd24ee2a9259a5dbff64a3e2d0a68 (diff) |
Merge "Delete TestCase.create_snapshot()"
Diffstat (limited to 'functest')
-rw-r--r-- | functest/ci/run_tests.py | 3 | ||||
-rw-r--r-- | functest/core/testcase.py | 11 | ||||
-rw-r--r-- | functest/tests/unit/core/test_testcase.py | 4 |
3 files changed, 0 insertions, 18 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py index 166dbfc9..6748484d 100644 --- a/functest/ci/run_tests.py +++ b/functest/ci/run_tests.py @@ -137,9 +137,6 @@ class Runner(object): test_dict = ft_utils.get_dict_by_test(test.get_name()) test_case = cls(**test_dict) self.executed_test_cases[test.get_name()] = test_case - if self.clean_flag: - if test_case.create_snapshot() != test_case.EX_OK: - return testcase.TestCase.EX_RUN_ERROR try: kwargs = run_dict['args'] test_case.run(**kwargs) diff --git a/functest/core/testcase.py b/functest/core/testcase.py index ae0da9d7..fa380287 100644 --- a/functest/core/testcase.py +++ b/functest/core/testcase.py @@ -178,17 +178,6 @@ class TestCase(object): self.__logger.exception("The results cannot be pushed to DB") return TestCase.EX_PUSH_TO_DB_ERROR - def create_snapshot(self): # pylint: disable=no-self-use - """Save the testing environment before running test. - - It can be overriden if resources must be listed running the - test case. - - Returns: - TestCase.EX_OK - """ - return TestCase.EX_OK - def clean(self): """Clean the resources. diff --git a/functest/tests/unit/core/test_testcase.py b/functest/tests/unit/core/test_testcase.py index 6fbf62e2..73ed3470 100644 --- a/functest/tests/unit/core/test_testcase.py +++ b/functest/tests/unit/core/test_testcase.py @@ -223,10 +223,6 @@ class TestCaseTesting(unittest.TestCase): self.assertIn(duration, message) self.assertIn('FAIL', message) - def test_create_snapshot(self): - self.assertEqual(self.test.create_snapshot(), - testcase.TestCase.EX_OK) - def test_clean(self): self.assertEqual(self.test.clean(), None) |