summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSloane Hertel <shertel@redhat.com>2018-09-21 22:57:55 -0400
committerMatt Clay <matt@mystile.com>2018-09-28 08:51:51 -0700
commit46f189d937abc9dc63d3ee9de4ddf61bbad57e1f (patch)
tree8d911ab57a8a679736d4567af271c35fe376bbcf
parent36414cc5189c35fe47fb4be9d975d15d882ae519 (diff)
downloadansible-46f189d937abc9dc63d3ee9de4ddf61bbad57e1f.tar.gz
Fix and re-enable sts_assume_role integration tests (#46026)
* Fix the STS assume role error message assertion when the role to assume does not exist. (cherry picked from commit 18dc928e28ae35bf9b786c8a48558ff83cc3a6a2)
-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 53e9a6dce1..687619c61c 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'
- - "'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
# ============================================================