Code Review
/
functest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
ca9c645
)
bugfix: get admin role on joid installer
29/6129/1
author
boucherv
<valentin.boucher@orange.com>
Mon, 11 Jan 2016 10:33:18 +0000
(11:33 +0100)
committer
Morgan Richomme
<morgan.richomme@orange.com>
Mon, 11 Jan 2016 10:35:38 +0000
(10:35 +0000)
Change-Id: I8d6227441ca824cb7cf910e8615d4e7b5cf816c6
Signed-off-by: boucherv <valentin.boucher@orange.com>
(cherry picked from commit
e1d0769008da2904ae12d1ca0020ef3f09336439
)
testcases/vIMS/CI/vIMS.py
patch
|
blob
|
history
diff --git
a/testcases/vIMS/CI/vIMS.py
b/testcases/vIMS/CI/vIMS.py
index
a729e23
..
94679f0
100644
(file)
--- 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)