From 37df3796e11f176d55e2151c2c78fb0b23e0a394 Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Fri, 21 Sep 2018 22:57:55 -0400 Subject: [PATCH] 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) --- test/integration/targets/sts_assume_role/tasks/main.yml | 4 ++-- 1 file 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 53e9a6dce11..687619c61c5 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 # ============================================================