From 1a77bcd6eb5ab695a232004b88e5e59d9d9ff6a3 Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Mon, 27 Sep 2021 14:53:02 +0000 Subject: [TEST] Do not use VID API in tests 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 Change-Id: Ie3822dbb9981f382a94cc7ffd0e1917682bc78ae --- src/onaptests/steps/instantiate/service_ala_carte.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/onaptests/steps/instantiate/service_ala_carte.py b/src/onaptests/steps/instantiate/service_ala_carte.py index 8ce2871..4274a9f 100644 --- a/src/onaptests/steps/instantiate/service_ala_carte.py +++ b/src/onaptests/steps/instantiate/service_ala_carte.py @@ -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 *******") -- cgit 1.2.3-korg