summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Pauls <michael.pauls@fokus.fraunhofer.de>2017-03-23 11:28:25 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2017-03-23 18:06:50 +0000
commit07e2518f65291e16d2d37947c130e67ce9424a18 (patch)
tree2b6a24c15bc713908cb64b8aa5003d76aa629dda
parent75be88ef2184eeab92cc9a0102e7daf9a41492b2 (diff)
Fix VIM onboarding
Usage openstack client in order to get project id directly Change-Id: Id75dcd594430501152c3ba02a969ac1a2aaaadc5 Signed-off-by: Michael Pauls <michael.pauls@fokus.fraunhofer.de> (cherry picked from commit 84a87e788b47d5a8fa3565195672fdddd35f4cf0)
-rw-r--r--functest/opnfv_tests/vnf/ims/orchestra_ims.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/functest/opnfv_tests/vnf/ims/orchestra_ims.py b/functest/opnfv_tests/vnf/ims/orchestra_ims.py
index d13fe8fe8..5c19be096 100644
--- a/functest/opnfv_tests/vnf/ims/orchestra_ims.py
+++ b/functest/opnfv_tests/vnf/ims/orchestra_ims.py
@@ -311,10 +311,16 @@ class ImsVnf(vnf_base.VnfOnBoardingBase):
creds = os_utils.get_credentials()
self.logger.info("PoP creds: %s" % creds)
+ project_id = os_utils.get_tenant_id(
+ os_utils.get_keystone_client(),
+ creds.get("project_name"))
+
+ self.logger.debug("project id: %s" % project_id)
+
vim_json = {
"name": "vim-instance",
"authUrl": creds.get("auth_url"),
- "tenant": os.environ.get("OS_PROJECT_ID"),
+ "tenant": project_id,
"username": creds.get("username"),
"password": creds.get("password"),
"securityGroups": [