diff options
author | Jill R <4121322+jillr@users.noreply.github.com> | 2019-10-09 14:08:29 -0700 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2019-10-14 14:18:46 -0700 |
commit | b65984981f1db1fe5e5b4cdc56ffb8418ae0d354 (patch) | |
tree | 5ceaf5cb03d9a3f07f06fa3facf5e810adc523f2 | |
parent | 40618d70e61af1123907a5fb246cc4fd35f1e5c3 (diff) | |
download | ansible-b65984981f1db1fe5e5b4cdc56ffb8418ae0d354.tar.gz |
[stable-2.7] 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.yml | 4 |
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 # ============================================================ |