aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario/status.py
diff options
context:
space:
mode:
authorMicha? Jagie??o <michal.jagiello@t-mobile.pl>2023-06-21 05:59:12 +0000
committerGerrit Code Review <gerrit@onap.org>2023-06-21 05:59:12 +0000
commit99ee76f7f618282987e71a2c0b2ddbaa5bbd2689 (patch)
tree1bf841d2161f4d4feabe2e93f53861db9ac06470 /src/onaptests/scenario/status.py
parent66cb2f9168c8a8f0c19e662491019d01f16de146 (diff)
parentc10f9f4706aeb848cc55ad7a552081dbf3e7b6a7 (diff)
Merge "BaseScenario class added"
Diffstat (limited to 'src/onaptests/scenario/status.py')
-rw-r--r--src/onaptests/scenario/status.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/onaptests/scenario/status.py b/src/onaptests/scenario/status.py
index 79ce0c6..ed27975 100644
--- a/src/onaptests/scenario/status.py
+++ b/src/onaptests/scenario/status.py
@@ -1,24 +1,21 @@
import logging
import time
-from xtesting.core import testcase
+
from onapsdk.configuration import settings
from onapsdk.exceptions import SDKException
-
+from onaptests.scenario.scenario_base import ScenarioBase
from onaptests.steps.cloud.check_status import CheckNamespaceStatusStep
from onaptests.utils.exceptions import OnapTestException
-class Status(testcase.TestCase):
+class Status(ScenarioBase):
"""Retrieve status of Kubernetes resources in the nemaspace."""
__logger = logging.getLogger(__name__)
def __init__(self, **kwargs):
"""Init the testcase."""
- if "case_name" not in kwargs:
- kwargs["case_name"] = 'status'
- super().__init__(**kwargs)
- self.__logger.debug("Status check init started")
+ super().__init__('status', **kwargs)
self.test = CheckNamespaceStatusStep(
cleanup=settings.CLEANUP_FLAG)
self.start_time = None