class ImsVnf(vnf_base.VnfOnBoardingBase):
- def __init__(self, project='functest', case='orchestra_ims',
+ def __init__(self, project='functest', case_name='orchestra_ims',
repo='', cmd=''):
- super(ImsVnf, self).__init__(project, case, repo, cmd)
+ super(ImsVnf, self).__init__(project, case_name, repo, cmd)
self.ob_password = "openbaton"
self.ob_username = "admin"
self.ob_https = False
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": [