Skip to content

Commit

Permalink
Fix and re-enable sts_assume_role integration tests (ansible#46026)
Browse files Browse the repository at this point in the history
* Fix the STS assume role error message assertion when the role to assume does not exist.

(cherry picked from commit 18dc928)
  • Loading branch information
s-hertel authored and mattclay committed Sep 28, 2018
1 parent 36414cc commit 46f189d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/targets/sts_assume_role/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,14 @@
assert:
that:
- 'result.failed'
- "'Not authorized to perform sts:AssumeRole' in result.msg"
- "'Access denied' in result.msg"
when: result.module_stderr is not defined

- name: assert assume not existing sts role
assert:
that:
- 'result.failed'
- "'Not authorized to perform sts:AssumeRole' in result.module_stderr"
- "'Access denied' in result.module_stderr"
when: result.module_stderr is defined

# ============================================================
Expand Down

0 comments on commit 46f189d

Please sign in to comment.