summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJill R <4121322+jillr@users.noreply.github.com>2019-10-09 14:08:29 -0700
committerToshio Kuratomi <a.badger@gmail.com>2019-10-14 14:19:09 -0700
commit9849fc183d10656103f27163def2fe6b738fa44d (patch)
treeb991064e67b60992e210b0c089a74f97ba06ea62
parent16684f118715a52e1c46d437652add9ca36423de (diff)
downloadansible-9849fc183d10656103f27163def2fe6b738fa44d.tar.gz
[stable-2.6] Fix STS assume role error message when role does not exist (#63249)
AWS appears to have changed this error message again. Fixes https://app.shippable.com/github/ansible/ansible/runs/145643/115/tests (cherry picked from commit ce402f003f) Co-authored-by: Jill R <4121322+jillr@users.noreply.github.com>
-rw-r--r--test/integration/targets/sts_assume_role/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/targets/sts_assume_role/tasks/main.yml b/test/integration/targets/sts_assume_role/tasks/main.yml
index 687619c61c..68f805cbb7 100644
--- a/test/integration/targets/sts_assume_role/tasks/main.yml
+++ b/test/integration/targets/sts_assume_role/tasks/main.yml
@@ -290,14 +290,14 @@
assert:
that:
- 'result.failed'
- - "'Access denied' in result.msg"
+ - "'is not authorized to perform: sts:AssumeRole' in result.msg"
when: result.module_stderr is not defined
- name: assert assume not existing sts role
assert:
that:
- 'result.failed'
- - "'Access denied' in result.module_stderr"
+ - "'is not authorized to perform: sts:AssumeRole' in result.msg"
when: result.module_stderr is defined
# ============================================================