From c10f9f4706aeb848cc55ad7a552081dbf3e7b6a7 Mon Sep 17 00:00:00 2001 From: Lukasz Rajewski Date: Fri, 16 Jun 2023 15:56:52 +0000 Subject: BaseScenario class added It prints out settings and will unify logic of scenarios later on. Issue-ID: TEST-395 Signed-off-by: Lukasz Rajewski Change-Id: Ie5929e0cc136183d4374b95bfc1600445126c4b6 --- src/onaptests/scenario/cds_resource_resolution.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/onaptests/scenario/cds_resource_resolution.py') diff --git a/src/onaptests/scenario/cds_resource_resolution.py b/src/onaptests/scenario/cds_resource_resolution.py index cff04d8..7bf2f94 100644 --- a/src/onaptests/scenario/cds_resource_resolution.py +++ b/src/onaptests/scenario/cds_resource_resolution.py @@ -6,11 +6,11 @@ import time from onapsdk.configuration import settings from onapsdk.exceptions import SDKException -from xtesting.core import testcase - +from onaptests.scenario.scenario_base import ScenarioBase from onaptests.steps.base import BaseStep from onaptests.steps.onboard.cds import CbaProcessStep -from onaptests.steps.simulator.cds_mockserver import CdsMockserverCnfConfigureStep +from onaptests.steps.simulator.cds_mockserver import \ + CdsMockserverCnfConfigureStep from onaptests.utils.exceptions import OnapTestException @@ -58,17 +58,14 @@ class CDSResourceResolutionStep(BaseStep): return "PythonSDK-tests" -class CDSResourceResolution(testcase.TestCase): +class CDSResourceResolution(ScenarioBase): """Enrich simple blueprint using CDS blueprintprocessor.""" __logger = logging.getLogger(__name__) def __init__(self, **kwargs): """Init CDS resource resolution use case.""" - if "case_name" not in kwargs: - kwargs["case_name"] = 'basic_cds' - super().__init__(**kwargs) - self.__logger.debug("CDS resource resolution initialization") + super().__init__('basic_cds', **kwargs) self.test = CDSResourceResolutionStep( cleanup=settings.CLEANUP_FLAG) self.start_time = None -- cgit 1.2.3-korg