summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-03-01 19:20:13 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-03-01 19:29:40 +0100
commit037c2b090816095cf5ecd7ba90ed8564be4be835 (patch)
tree949a741fc8507b3455c8aacf94e74d5fbfb3a11d
parent19fee71375b93ac2b934381c1575114417e9b389 (diff)
Change password generator
It adds lower and upper letters JIRA: DOVETAIL-747 Change-Id: I4bdfcbf31a6dae4aa555fca3d42bbdec514a2b6b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 470bcd99fdabf53d4652d13280329243d5f81c4a)
-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"))