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:
Sloane Hertel 2018-09-21 22:57:55 -04:00 committed by GitHub
parent 7d8f1a7aae
commit 18dc928e28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,3 @@
cloud/aws
shippable/aws/group1
iam_role
disabled

View file

@ -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
# ============================================================