diff options
author | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2023-06-16 15:56:52 +0000 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2023-06-20 10:31:35 +0000 |
commit | c10f9f4706aeb848cc55ad7a552081dbf3e7b6a7 (patch) | |
tree | affe65029df890a676185a777a2c21459d3c381f /src/onaptests/scenario/basic_sdnc.py | |
parent | 27ddbbeebee8dd18b266ade15d075d88b5c50c7e (diff) |
BaseScenario class added
It prints out settings and will unify logic of
scenarios later on.
Issue-ID: TEST-395
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl>
Change-Id: Ie5929e0cc136183d4374b95bfc1600445126c4b6
Diffstat (limited to 'src/onaptests/scenario/basic_sdnc.py')
-rw-r--r-- | src/onaptests/scenario/basic_sdnc.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/onaptests/scenario/basic_sdnc.py b/src/onaptests/scenario/basic_sdnc.py index 328a175..9255d29 100644 --- a/src/onaptests/scenario/basic_sdnc.py +++ b/src/onaptests/scenario/basic_sdnc.py @@ -1,15 +1,14 @@ 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.instantiate.sdnc_service import TestSdncStep from onaptests.utils.exceptions import OnapTestException -class BasicSdnc(testcase.TestCase): +class BasicSdnc(ScenarioBase): """Create SDNC service. Check and delete the service. """ @@ -18,10 +17,7 @@ class BasicSdnc(testcase.TestCase): def __init__(self, **kwargs): """Init Basic SDNC use case.""" - if "case_name" not in kwargs: - kwargs["case_name"] = 'basic_SDNC' - super().__init__(**kwargs) - self.__logger.debug("Basic SDNC init started") + super().__init__('basic_sdnc', **kwargs) self.test = TestSdncStep(cleanup=settings.CLEANUP_FLAG) def run(self): |