[TEST] Do not use VID API in tests 07/124507/1
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Mon, 27 Sep 2021 14:53:02 +0000 (14:53 +0000)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Mon, 27 Sep 2021 14:53:02 +0000 (14:53 +0000)
VID is going to be removed on Istanbul release so in tests we shouldn't use any of it's API.
PythonSDK code requires some of the VID package classes for instantiation, but it requires just class instances and not the already created resources.

Issue-ID: TEST-364
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: Ie3822dbb9981f382a94cc7ffd0e1917682bc78ae

src/onaptests/steps/instantiate/service_ala_carte.py

index 8ce2871..4274a9f 100644 (file)
@@ -70,7 +70,7 @@ class ServiceAlaCarteInstantiateStep(BaseStep):
         except ResourceNotFound:
             self._logger.info("Owning entity not found, create it")
             owning_entity = AaiOwningEntity.create(settings.OWNING_ENTITY)
-        vid_project = Project.create(settings.PROJECT)
+        vid_project = Project(settings.PROJECT)
 
         service_instantiation = ServiceInstantiation.instantiate_so_ala_carte(
             service,
@@ -197,7 +197,7 @@ class YamlTemplateServiceAlaCarteInstantiateStep(YamlTemplateBaseStep):
         except ResourceNotFound:
             self._logger.info("Owning entity not found, create it")
             owning_entity = AaiOwningEntity.create(settings.OWNING_ENTITY)
-        vid_project = Project.create(settings.PROJECT)
+        vid_project = Project(settings.PROJECT)
 
         # Before instantiating, be sure that the service has been distributed
         self._logger.info("******** Check Service Distribution *******")