diff options
author | 2019-10-08 18:36:14 +0000 | |
---|---|---|
committer | 2019-10-08 18:36:14 +0000 | |
commit | 833c71f6ec9739ed5a35b81fc8ee1bb10ecc46d0 (patch) | |
tree | 9a9555a815c6f8ca3eea5b621600c93e58df92c3 | |
parent | 7332716dc835cd72b0beefc38afda2697bd99e02 (diff) | |
parent | 2965fd64df9c85b7a4c384b6f33aeea96ccbbece (diff) |
Merge "Switch to Tempest password generator"
-rw-r--r-- | functest/core/tenantnetwork.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/functest/core/tenantnetwork.py b/functest/core/tenantnetwork.py index 3b9c7eba9..056e91c35 100644 --- a/functest/core/tenantnetwork.py +++ b/functest/core/tenantnetwork.py @@ -20,13 +20,12 @@ This classes could be reused by more complexed scenarios (Single VM) import logging import os -import random -import string import time import uuid import os_client_config import shade +from tempest.lib.common.utils import data_utils from xtesting.core import testcase from functest.utils import config @@ -56,9 +55,7 @@ class NewProject(): """Create projects/users""" assert self.orig_cloud assert self.case_name - self.password = ''.join(random.choice( - string.ascii_letters + string.digits + - '!()*+,-.<=>?@[]^_{|}~') for _ in range(30)) + self.password = data_utils.rand_password().replace('%', '!') self.__logger.debug("password: %s", self.password) self.domain = self.orig_cloud.get_domain( name_or_id=self.orig_cloud.auth.get( |