diff options
author | boucherv <valentin.boucher@orange.com> | 2016-01-11 11:33:18 +0100 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-01-11 10:35:38 +0000 |
commit | 55048bcbd8db2c8975faa233a260fbc3222e9dcd (patch) | |
tree | dafc6930611f3af34eb72e52b855e55b1d63903d /testcases/vIMS/CI/vIMS.py | |
parent | ca9c645c0a8bb0781e6e55490f95707f3446f49a (diff) |
bugfix: get admin role on joid installer
Change-Id: I8d6227441ca824cb7cf910e8615d4e7b5cf816c6
Signed-off-by: boucherv <valentin.boucher@orange.com>
(cherry picked from commit e1d0769008da2904ae12d1ca0020ef3f09336439)
Diffstat (limited to 'testcases/vIMS/CI/vIMS.py')
-rw-r--r-- | testcases/vIMS/CI/vIMS.py | 8 |
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) |