aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functest/core/tenantnetwork.py4
-rw-r--r--functest/opnfv_tests/openstack/shaker/shaker.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/functest/core/tenantnetwork.py b/functest/core/tenantnetwork.py
index 604e49ae5..a7b4e9ccd 100644
--- a/functest/core/tenantnetwork.py
+++ b/functest/core/tenantnetwork.py
@@ -56,7 +56,9 @@ class NewProject():
assert self.orig_cloud
assert self.case_name
self.password = ''.join(random.choice(
- string.ascii_letters + string.digits) for _ in range(30))
+ string.ascii_letters + string.digits +
+ '!()*+,-.<=>?@[]^_{|}~') for _ in range(30))
+ self.__logger.debug("password: %s", self.password)
self.domain = self.orig_cloud.get_domain(
name_or_id=self.orig_cloud.auth.get(
"project_domain_name", "Default"))
diff --git a/functest/opnfv_tests/openstack/shaker/shaker.py b/functest/opnfv_tests/openstack/shaker/shaker.py
index fd31ea689..03aeccafc 100644
--- a/functest/opnfv_tests/openstack/shaker/shaker.py
+++ b/functest/opnfv_tests/openstack/shaker/shaker.py
@@ -100,7 +100,7 @@ class Shaker(singlevm.SingleVm2):
'unset OS_TENANT_NAME && '
'unset OS_TENANT_ID && '
'unset OS_ENDPOINT_TYPE && '
- 'export OS_PASSWORD={} && '
+ 'export OS_PASSWORD="{}" && '
'{}'
'env && '
'timeout {} shaker --image-name {} --flavor-name {} '