aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-03-04 12:19:15 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-03-04 12:19:15 +0100
commitb28bbe423d3daa56be6342002e4e91639df15d17 (patch)
treea72a9887cdf15bf0ff4848dc0926b81703cd3575
parent661fed2fa81d70e145ce5290d243ab523d3d7fc1 (diff)
Set user domain name when creating users
It updates juju_epc.py and cloudify_vrouter.py. Change-Id: I8cf97e31d78a4d48ad815faadc8e4130581e1c21 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/opnfv_tests/vnf/epc/juju_epc.py1
-rw-r--r--functest/opnfv_tests/vnf/router/cloudify_vrouter.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/functest/opnfv_tests/vnf/epc/juju_epc.py b/functest/opnfv_tests/vnf/epc/juju_epc.py
index adf2b6d10..63de72175 100644
--- a/functest/opnfv_tests/vnf/epc/juju_epc.py
+++ b/functest/opnfv_tests/vnf/epc/juju_epc.py
@@ -130,6 +130,7 @@ class JujuEpc(vnf.VnfOnBoarding):
self.snaps_creds,
UserConfig(
name=name, password=str(uuid.uuid4()),
+ domain=self.snaps_creds.user_domain_name,
roles={'_member_': self.tenant_name}))
user_creator.create()
self.created_object.append(user_creator)
diff --git a/functest/opnfv_tests/vnf/router/cloudify_vrouter.py b/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
index 18acce6f7..11b9000bc 100644
--- a/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
+++ b/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
@@ -332,6 +332,7 @@ class CloudifyVrouter(vrouter_base.VrouterOnBoardingBase):
UserConfig(
name='cloudify_network_bug-{}'.format(self.uuid),
password=str(uuid.uuid4()),
+ domain=self.snaps_creds.user_domain_name,
roles={'_member_': self.tenant_name}))
user_creator.create()
self.created_object.append(user_creator)