aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-12-19 00:52:21 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2017-12-19 00:58:03 +0100
commit840e69fde9c86df109e777ec4e31ec1785020176 (patch)
treea7700cb3c041c42c1e98bb5fe968549d6602ff66 /functest/core
parent8c11fb51544b020bc329129ba9c3503e84182c84 (diff)
Remove OSGCTestCase
This class is no longer used and must be removed before working on xtesting. JIRA: FUNCTEST-887 Change-Id: I3ac1db6ec90d9db301e5461cd79cfcf77291dffc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/core')
-rw-r--r--functest/core/testcase.py35
1 files changed, 2 insertions, 33 deletions
diff --git a/functest/core/testcase.py b/functest/core/testcase.py
index a7dc47c4..ae0da9d7 100644
--- a/functest/core/testcase.py
+++ b/functest/core/testcase.py
@@ -12,11 +12,10 @@
import logging
import os
+import functest.utils.functest_utils as ft_utils
+
import prettytable
-import functest.utils.functest_utils as ft_utils
-import functest.utils.openstack_clean as os_clean
-import functest.utils.openstack_snapshot as os_snapshot
__author__ = "Cedric Ollivier <cedric.ollivier@orange.com>"
@@ -196,33 +195,3 @@ class TestCase(object):
It can be overriden if resources must be deleted after
running the test case.
"""
-
-
-class OSGCTestCase(TestCase):
- """Model for single test case which requires an OpenStack Garbage
- Collector."""
-
- __logger = logging.getLogger(__name__)
-
- def create_snapshot(self):
- """Create a snapshot listing the OpenStack resources.
-
- Returns:
- TestCase.EX_OK if os_snapshot.main() returns 0.
- TestCase.EX_RUN_ERROR otherwise.
- """
- try:
- assert os_snapshot.main() == 0
- self.__logger.info("OpenStack resources snapshot created")
- return TestCase.EX_OK
- except Exception: # pylint: disable=broad-except
- self.__logger.exception("Cannot create the snapshot")
- return TestCase.EX_RUN_ERROR
-
- def clean(self):
- """Clean the OpenStack resources."""
- try:
- assert os_clean.main() == 0
- self.__logger.info("OpenStack resources cleaned")
- except Exception: # pylint: disable=broad-except
- self.__logger.exception("Cannot clean the OpenStack resources")