mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
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.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
cloud/aws
|
cloud/aws
|
||||||
shippable/aws/group1
|
shippable/aws/group1
|
||||||
iam_role
|
iam_role
|
||||||
disabled
|
|
||||||
|
|||||||
@@ -290,14 +290,14 @@
|
|||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- 'result.failed'
|
- 'result.failed'
|
||||||
- "'Not authorized to perform sts:AssumeRole' in result.msg"
|
- "'Access denied' in result.msg"
|
||||||
when: result.module_stderr is not defined
|
when: result.module_stderr is not defined
|
||||||
|
|
||||||
- name: assert assume not existing sts role
|
- name: assert assume not existing sts role
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- 'result.failed'
|
- 'result.failed'
|
||||||
- "'Not authorized to perform sts:AssumeRole' in result.module_stderr"
|
- "'Access denied' in result.module_stderr"
|
||||||
when: result.module_stderr is defined
|
when: result.module_stderr is defined
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user