From 9849fc183d10656103f27163def2fe6b738fa44d Mon Sep 17 00:00:00 2001 From: Jill R <4121322+jillr@users.noreply.github.com> Date: Wed, 9 Oct 2019 14:08:29 -0700 Subject: [PATCH] [stable-2.6] Fix STS assume role error message when role does not exist (#63249) AWS appears to have changed this error message again. Fixes https://app.shippable.com/github/ansible/ansible/runs/145643/115/tests (cherry picked from commit ce402f003f) Co-authored-by: Jill R <4121322+jillr@users.noreply.github.com> --- 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 687619c61c5..68f805cbb75 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' - - "'Access denied' in result.msg" + - "'is not authorized to perform: sts:AssumeRole' in result.msg" when: result.module_stderr is not defined - name: assert assume not existing sts role assert: that: - 'result.failed' - - "'Access denied' in result.module_stderr" + - "'is not authorized to perform: sts:AssumeRole' in result.msg" when: result.module_stderr is defined # ============================================================