aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core
diff options
context:
space:
mode:
authorboucherv <valentin.boucher@orange.com>2017-02-16 09:59:18 +0100
committerboucherv <valentin.boucher@orange.com>2017-02-16 10:38:12 +0100
commit2dd59e860a74f7ad9f6883ba598fc2bae4e8eb79 (patch)
tree02f762512d0397ef9b7bd6047ee8b7fce518d455 /functest/core
parent128f37f591eddae669cb606b65bb1e7ed632e965 (diff)
Fix auth error
JIRA: FUNCTEST-734 Change-Id: I9e13b9b9459b9051981766fbf32126583a761656 Signed-off-by: boucherv <valentin.boucher@orange.com>
Diffstat (limited to 'functest/core')
-rw-r--r--functest/core/vnf_base.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/functest/core/vnf_base.py b/functest/core/vnf_base.py
index 8e98d8ed..07b64fd0 100644
--- a/functest/core/vnf_base.py
+++ b/functest/core/vnf_base.py
@@ -150,12 +150,14 @@ class VnfOnBoardingBase(base.TestcaseBase):
self.step_failure("Failed to create user ")
self.logger.info("Update OpenStack creds informations")
- self.creds.update({
- "tenant": self.tenant_name,
+ self.admin_creds = self.creds.copy()
+ self.admin_creds.update({
+ "tenant": self.tenant_name
})
- self.neutron_client = os_utils.get_neutron_client(self.creds)
- self.nova_client = os_utils.get_nova_client(self.creds)
+ self.neutron_client = os_utils.get_neutron_client(self.admin_creds)
+ self.nova_client = os_utils.get_nova_client(self.admin_creds)
self.creds.update({
+ "tenant": self.tenant_name,
"username": self.tenant_name,
"password": self.tenant_name,
})