From: Michal Jagiello Date: Mon, 27 Sep 2021 14:53:02 +0000 (+0000) Subject: [TEST] Do not use VID API in tests X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F124507%2F1;p=testsuite%2Fpythonsdk-tests.git [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 --- 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 *******")