aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2018-01-18 03:38:46 +0000
committerCédric Ollivier <cedric.ollivier@orange.com>2018-01-20 14:44:48 +0100
commit45fdfedc5b5573926c53264ff5eb3e48a43345d9 (patch)
treeb019258489c75e48e86046e6d30c2d49297b7bc0 /functest/core
parentd181f61205869adef1b8763feb531cc3df52669f (diff)
Configure password for the user in vnf
For some SUTs, the password for creating user is not allowed to be the same as user name, and some even is required to contain at least 8 characters and three types of characters for security. It also turns yamllint warnings into errors and fixes the remaining warnings. Change-Id: Icf25a7b9ff1c8cee55899198f1e519c9209877ff Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/core')
-rw-r--r--functest/core/vnf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/functest/core/vnf.py b/functest/core/vnf.py
index 73aaf446..856e62b5 100644
--- a/functest/core/vnf.py
+++ b/functest/core/vnf.py
@@ -11,6 +11,7 @@
import logging
import time
+import uuid
import functest.core.testcase as base
from functest.utils.constants import CONST
@@ -122,7 +123,7 @@ class VnfOnBoarding(base.TestCase):
snaps_creds,
UserConfig(
name=self.tenant_name,
- password=self.tenant_name,
+ password=str(uuid.uuid4()),
roles={'admin': self.tenant_name}))
user_creator.create()