aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/configuration/basic_vm_macro_settings.py
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2021-05-11 07:56:34 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2021-05-11 07:59:23 +0000
commited9b039e5f4b54aa6ebbef7aa95fafdce7d5ce75 (patch)
treecc16b94db76f1b6f85a694b7d2d87f2ef18ef2b3 /src/onaptests/configuration/basic_vm_macro_settings.py
parent227f55ed67caec8e67a037bc3e901caf54617c4c (diff)
[TEST] Do not try to recreate already created SDC resources
When try to recreate SDC resources like VF, PNF or Service it's API returns errors. Check before onboarding if resource we want to create already exists. Issue-ID: TEST-333 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I852bdf12bc6acd5ef8be52c9a883861f53d4a9ac
Diffstat (limited to 'src/onaptests/configuration/basic_vm_macro_settings.py')
-rw-r--r--src/onaptests/configuration/basic_vm_macro_settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/onaptests/configuration/basic_vm_macro_settings.py b/src/onaptests/configuration/basic_vm_macro_settings.py
index bdeeb85..b29cd1d 100644
--- a/src/onaptests/configuration/basic_vm_macro_settings.py
+++ b/src/onaptests/configuration/basic_vm_macro_settings.py
@@ -1,6 +1,7 @@
import os
import openstack
from pathlib import Path
+from uuid import uuid4
from yaml import load
@@ -57,4 +58,4 @@ try:
except (FileNotFoundError, ValueError):
raise onap_test_exceptions.TestConfigurationException
-SERVICE_INSTANCE_NAME = "basic_vm_macro_service_instance"
+SERVICE_INSTANCE_NAME = f"basic_macro_{str(uuid4())}"