summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2019-03-02 08:15:10 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-03-02 08:15:10 +0000
commit662cc55f30254b3a46257d5f07eee1035d3d676f (patch)
tree9eb676bac646337aa9a6d22db54b99b6f9892b02
parent9924438f9d116aed656009c3cee3d1265ab0576d (diff)
parent470bcd99fdabf53d4652d13280329243d5f81c4a (diff)
Merge "Change password generator"
-rw-r--r--functest/core/tenantnetwork.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/functest/core/tenantnetwork.py b/functest/core/tenantnetwork.py
index 4298ea981..1b2eb9414 100644
--- a/functest/core/tenantnetwork.py
+++ b/functest/core/tenantnetwork.py
@@ -20,6 +20,8 @@ This classes could be reused by more complexed scenarios (Single VM)
import logging
import os
+import random
+import string
import time
import uuid
@@ -53,7 +55,8 @@ class NewProject(object):
"""Create projects/users"""
assert self.orig_cloud
assert self.case_name
- self.password = str(uuid.uuid4())
+ self.password = ''.join(random.choice(
+ string.ascii_letters + string.digits) for _ in range(30))
self.domain = self.orig_cloud.get_domain(
name_or_id=self.orig_cloud.auth.get(
"project_domain_name", "Default"))