diff --git a/test/integration/targets/sts_assume_role/tasks/main.yml b/test/integration/targets/sts_assume_role/tasks/main.yml index f084b48c423..345454932f7 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 # ============================================================