summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functest/core/vnf.py1
-rw-r--r--functest/opnfv_tests/vnf/epc/juju_epc.py6
-rw-r--r--functest/opnfv_tests/vnf/router/cloudify_vrouter.py2
3 files changed, 8 insertions, 1 deletions
diff --git a/functest/core/vnf.py b/functest/core/vnf.py
index 2f9c5a71f..a6afd4e6b 100644
--- a/functest/core/vnf.py
+++ b/functest/core/vnf.py
@@ -110,6 +110,7 @@ class VnfOnBoarding(vnf.VnfOnBoarding):
user_creator.create()
self.created_object.append(user_creator)
self.snaps_creds = user_creator.get_os_creds(self.tenant_name)
+ self.__logger.debug("snaps creds: %s", self.snaps_creds)
return vnf.VnfOnBoarding.EX_OK
except Exception: # pylint: disable=broad-except
diff --git a/functest/opnfv_tests/vnf/epc/juju_epc.py b/functest/opnfv_tests/vnf/epc/juju_epc.py
index 39678916d..9e5f8d33b 100644
--- a/functest/opnfv_tests/vnf/epc/juju_epc.py
+++ b/functest/opnfv_tests/vnf/epc/juju_epc.py
@@ -130,7 +130,9 @@ class JujuEpc(vnf.VnfOnBoarding):
user_creator = OpenStackUser(
self.snaps_creds,
UserConfig(
- name=name, password=str(uuid.uuid4()),
+ name=name,
+ password=str(uuid.uuid4()),
+ project_name=self.tenant_name,
domain=self.snaps_creds.user_domain_name,
roles={'_member_': self.tenant_name}))
user_creator.create()
@@ -161,6 +163,7 @@ class JujuEpc(vnf.VnfOnBoarding):
user_creator = self._bypass_juju_network_discovery_bug(
'juju_network_discovery_bug')
snaps_creds = user_creator.get_os_creds(self.snaps_creds.project_name)
+ self.__logger.debug("snaps creds: %s", snaps_creds)
credentials_yaml = os.path.join(self.res_dir, "credentials.yaml")
creds_data = {
'pass': snaps_creds.password,
@@ -178,6 +181,7 @@ class JujuEpc(vnf.VnfOnBoarding):
user_creator = self._bypass_juju_network_discovery_bug(
'juju_network_discovery_bug')
snaps_creds = user_creator.get_os_creds(self.snaps_creds.project_name)
+ self.__logger.debug("snaps creds: %s", snaps_creds)
credentials_yaml = os.path.join(self.res_dir, "credentials.yaml")
creds_data = {
'pass': snaps_creds.password,
diff --git a/functest/opnfv_tests/vnf/router/cloudify_vrouter.py b/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
index 14269ad36..e23bba119 100644
--- a/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
+++ b/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
@@ -334,11 +334,13 @@ class CloudifyVrouter(vrouter_base.VrouterOnBoardingBase):
UserConfig(
name='cloudify_network_bug-{}'.format(self.uuid),
password=str(uuid.uuid4()),
+ project_name=self.tenant_name,
domain=self.snaps_creds.user_domain_name,
roles={'_member_': self.tenant_name}))
user_creator.create()
self.created_object.append(user_creator)
snaps_creds = user_creator.get_os_creds(self.snaps_creds.project_name)
+ self.__logger.debug("snaps creds: %s", snaps_creds)
self.vnf['inputs'].update(dict(target_vnf_image_id=image.id))
self.vnf['inputs'].update(dict(reference_vnf_image_id=image.id))