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 18dc928e28
)
This commit is contained in:
parent
7cce4dfbb0
commit
37df3796e1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
# ============================================================
|
||||
|
|
Loading…
Reference in a new issue