summaryrefslogtreecommitdiffstats
path: root/testcases/vIMS/CI
diff options
context:
space:
mode:
authorboucherv <valentin.boucher@orange.com>2016-01-11 11:33:18 +0100
committerboucherv <valentin.boucher@orange.com>2016-01-11 11:33:18 +0100
commite1d0769008da2904ae12d1ca0020ef3f09336439 (patch)
treef8988455763e47fafd5d10adb463028b42c18a5f /testcases/vIMS/CI
parentcc6e1a2d22b0509e8342571ceea437800537f8a1 (diff)
bugfix: get admin role on joid installer
Change-Id: I8d6227441ca824cb7cf910e8615d4e7b5cf816c6 Signed-off-by: boucherv <valentin.boucher@orange.com>
Diffstat (limited to 'testcases/vIMS/CI')
-rw-r--r--testcases/vIMS/CI/vIMS.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/testcases/vIMS/CI/vIMS.py b/testcases/vIMS/CI/vIMS.py
index a729e233e..94679f02a 100644
--- a/testcases/vIMS/CI/vIMS.py
+++ b/testcases/vIMS/CI/vIMS.py
@@ -216,8 +216,12 @@ def main():
logger.error("Error : Failed to create %s tenant" % TENANT_NAME)
exit(-1)
- role_name = "admin"
- role_id = functest_utils.get_role_id(keystone, role_name)
+ roles_name = ["admin", "Admin"]
+ role_id = ''
+ for role_name in roles_name:
+ if role_id == '':
+ role_id = functest_utils.get_role_id(keystone, role_name)
+
if role_id == '':
logger.error("Error : Failed to get id for %s role" % role_name)