diff options
author | shangxdy <shang.xiaodong@zte.com.cn> | 2017-09-14 18:24:35 +0800 |
---|---|---|
committer | shangxdy <shang.xiaodong@zte.com.cn> | 2017-09-14 18:24:35 +0800 |
commit | a9ea7f6e9c495895ad5f1993687b1ee06e8aa00c (patch) | |
tree | ee3d5076b2930126b762983a7d5dca5364ea4757 | |
parent | 87920ff99ba0a2ba5cbe0532a4f6d94846525f51 (diff) |
Fix functest_run script for role of heat_stack_owner
When update openstack to ocata and run test in functest, the following
error happends:
ERROR: Missing required credential: roles ['heat_stack_owner']
It need to add role heat_stack_owner to parser user
JIRA: PARSER-156
Change-Id: Ie0417c53c7dbd28efe8d9c4eb3fda23de8e1f841
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
-rwxr-xr-x | tests/functest_run.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/functest_run.sh b/tests/functest_run.sh index 5f2e0f9..b866ab9 100755 --- a/tests/functest_run.sh +++ b/tests/functest_run.sh @@ -110,7 +110,9 @@ create_parser_user_and_project() { } || { openstack ${debug} role add ${PARSER_ROLE} --user ${PARSER_USER} \ --project ${PARSER_PROJECT} - echo " Grant user ${PARSER_USER} the role ${PARSER_ROLE} in project ${PARSER_PROJECT} successful." + openstack ${debug} role add heat_stack_owner --user ${PARSER_USER} \ + --project ${PARSER_PROJECT} + echo " Grant user ${PARSER_USER} the role ${PARSER_ROLE} and heat_stack_owner in project ${PARSER_PROJECT} successful." } } |