aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2021-09-27 14:53:02 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2021-09-27 14:53:02 +0000
commit1a77bcd6eb5ab695a232004b88e5e59d9d9ff6a3 (patch)
tree1209e2a5f3c0217db4f9986457c38fe1f14f2489 /src/onaptests
parent0b68a2df6de462d3a515b6bec43b2acbdc181dff (diff)
[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 <michal.jagiello@t-mobile.pl> Change-Id: Ie3822dbb9981f382a94cc7ffd0e1917682bc78ae
Diffstat (limited to 'src/onaptests')
-rw-r--r--src/onaptests/steps/instantiate/service_ala_carte.py4
1 files 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 *******")