diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-05-11 07:56:34 +0000 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-05-17 07:56:03 +0000 |
commit | 060210803b263b681e696bc40bdbe9f254d729db (patch) | |
tree | 974d86b4bbafd93ec2ad19e9108700951587fd32 /src/onaptests/configuration | |
parent | 5833341a74e7002bb7131aa848cd0eafbfc6c82d (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: Idcedfa18331ec898fa446d6d7689885a485a1a86
Diffstat (limited to 'src/onaptests/configuration')
-rw-r--r-- | src/onaptests/configuration/basic_vm_macro_settings.py | 3 |
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())}" |