[CPS] Fix basic_cps test 53/133153/1
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Mon, 6 Feb 2023 11:58:11 +0000 (11:58 +0000)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Mon, 6 Feb 2023 11:58:11 +0000 (11:58 +0000)
Add missing variable assignement

Issue-ID: INT-2194
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I70044dd5b75cb0b57e97d8091fa43c757c926abf

src/onaptests/scenario/basic_cps.py

index 670972b..f7bf7a3 100644 (file)
@@ -5,7 +5,7 @@ import time
 from xtesting.core import testcase
 from onapsdk.configuration import settings
 from onapsdk.exceptions import SDKException
-from onaptests.steps.onboard.service import YamlTemplateServiceOnboardStep
+from onaptests.steps.onboard.cps import CreateCpsAnchorNodeStep
 from onaptests.utils.exceptions import OnapTestException
 
 class BasicCps(testcase.TestCase):
@@ -27,8 +27,7 @@ class BasicCps(testcase.TestCase):
             kwargs["case_name"] = 'basic_cps'
         super().__init__(**kwargs)
         self.__logger.debug("BasicCps init started")
-        # self.test = YamlTemplateServiceOnboardStep(  # To be created
-        #     cleanup=settings.CLEANUP_FLAG)
+        self.test = CreateCpsAnchorNodeStep(cleanup=settings.CLEANUP_FLAG)
         self.start_time = None
         self.stop_time = None
         self.result = 0