diff --git a/tests/integration/targets/auth_approle/tasks/approle_test_controller.yml b/tests/integration/targets/auth_approle/tasks/approle_test_controller.yml index 8cf331b1d..48b5117f7 100644 --- a/tests/integration/targets/auth_approle/tasks/approle_test_controller.yml +++ b/tests/integration/targets/auth_approle/tasks/approle_test_controller.yml @@ -52,4 +52,4 @@ fail_msg: "An invalid secret ID somehow did not cause a failure." that: - (response is failed) == use_secret_id - - not use_secret_id or response.msg is search('invalid secret id') + - not use_secret_id or response.msg is search('(?i)invalid (?:role or )?secret id') diff --git a/tests/integration/targets/auth_approle/tasks/approle_test_target.yml b/tests/integration/targets/auth_approle/tasks/approle_test_target.yml index 609b72673..387195af9 100644 --- a/tests/integration/targets/auth_approle/tasks/approle_test_target.yml +++ b/tests/integration/targets/auth_approle/tasks/approle_test_target.yml @@ -46,4 +46,4 @@ fail_msg: "An invalid secret ID somehow did not cause a failure." that: - (response.inner is failed) == use_secret_id - - not use_secret_id or response.msg is search('invalid secret id') + - not use_secret_id or response.msg is search('(?i)invalid (?:role or )?secret id')