aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario/basic_onboard.py
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-06-16 15:56:52 +0000
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-06-20 10:31:35 +0000
commitc10f9f4706aeb848cc55ad7a552081dbf3e7b6a7 (patch)
treeaffe65029df890a676185a777a2c21459d3c381f /src/onaptests/scenario/basic_onboard.py
parent27ddbbeebee8dd18b266ade15d075d88b5c50c7e (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_onboard.py')
-rw-r--r--src/onaptests/scenario/basic_onboard.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/onaptests/scenario/basic_onboard.py b/src/onaptests/scenario/basic_onboard.py
index 37947f0..cb1d0fe 100644
--- a/src/onaptests/scenario/basic_onboard.py
+++ b/src/onaptests/scenario/basic_onboard.py
@@ -2,13 +2,15 @@
"""Basic Onboard test case."""
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.onboard.service import YamlTemplateServiceOnboardStep
from onaptests.utils.exceptions import OnapTestException
-class BasicOnboard(testcase.TestCase):
+
+class BasicOnboard(ScenarioBase):
"""Onboard a simple VM with ONAP."""
__logger = logging.getLogger(__name__)
@@ -16,10 +18,7 @@ class BasicOnboard(testcase.TestCase):
def __init__(self, **kwargs):
"""Init BasicOnboard."""
# import basic_onboard_settings needed
- if "case_name" not in kwargs:
- kwargs["case_name"] = 'basic_onboard'
- super(BasicOnboard, self).__init__(**kwargs)
- self.__logger.debug("BasicOnboard init started")
+ super().__init__('basic_onboard', **kwargs)
self.test = YamlTemplateServiceOnboardStep(
cleanup=settings.CLEANUP_FLAG)
self.start_time = None