Fix creds still used by vrouter 03/42903/1
authorroot <shuya.nakama@okinawaopenlabs.org>
Mon, 25 Sep 2017 01:44:10 +0000 (01:44 +0000)
committerroot <shuya.nakama@okinawaopenlabs.org>
Mon, 25 Sep 2017 01:44:29 +0000 (01:44 +0000)
1. 'CloudifyVrouter' object has no attribute 'creds'
2. 'CloudifyVrouter' object was still use 'creds'
3. Doing test of modified vyos_vrouter on our labs.

Refer to following commit.
 https://gerrit.opnfv.org/gerrit/#/c/41249/

Change-Id: Id1b4dfa4c35aba9bbb4fd64ef58446d3e99468df
Signed-off-by: root <shuya.nakama@okinawaopenlabs.org>
functest/opnfv_tests/vnf/router/cloudify_vrouter.py

index edbdb49..8636236 100644 (file)
@@ -365,10 +365,10 @@ class CloudifyVrouter(vrouter_base.VrouterOnBoardingBase):
 
     def test_vnf(self):
         cfy_client = self.orchestrator['object']
-        credentials = {"username": self.creds["username"],
-                       "password": self.creds["password"],
-                       "auth_url": self.creds["auth_url"],
-                       "tenant_name": self.creds["tenant"],
+        credentials = {"username": self.snaps_creds.username,
+                       "password": self.snaps_creds.password,
+                       "auth_url": self.snaps_creds.auth_url,
+                       "tenant_name": self.snaps_creds.project_name,
                        "region_name": os.environ['OS_REGION_NAME']}
 
         self.util_info = {"credentials": credentials,