aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core/vnf.py
diff options
context:
space:
mode:
Diffstat (limited to 'functest/core/vnf.py')
-rw-r--r--functest/core/vnf.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/functest/core/vnf.py b/functest/core/vnf.py
index 0da8f6db..05baf432 100644
--- a/functest/core/vnf.py
+++ b/functest/core/vnf.py
@@ -50,8 +50,9 @@ class VnfOnBoarding(testcase.TestCase):
def __init__(self, **kwargs):
super(VnfOnBoarding, self).__init__(**kwargs)
- self.user_name = self.case_name
- self.tenant_name = self.case_name
+ self.uuid = uuid.uuid4()
+ self.user_name = "{}-{}".format(self.case_name, self.uuid)
+ self.tenant_name = "{}-{}".format(self.case_name, self.uuid)
self.snaps_creds = {}
self.created_object = []
self.os_project = None
@@ -106,7 +107,7 @@ class VnfOnBoarding(testcase.TestCase):
"""
try:
self.__logger.info(
- "Prepare VNF: %s, description: %s", self.tenant_name,
+ "Prepare VNF: %s, description: %s", self.case_name,
self.tenant_description)
snaps_creds = openstack_tests.get_credentials(
os_env_file=self.env_file)