From 2b27384a9323fbc24609a6ca33ee9ffc2b5c1c35 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 20 Oct 2021 03:31:40 +0100 Subject: [PATCH] CI: Handle variant of unknown user error message seen on MacOS --- tests/ansible/integration/become/sudo_nonexistent.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ansible/integration/become/sudo_nonexistent.yml b/tests/ansible/integration/become/sudo_nonexistent.yml index 86b3b101..0f1de8ba 100644 --- a/tests/ansible/integration/become/sudo_nonexistent.yml +++ b/tests/ansible/integration/become/sudo_nonexistent.yml @@ -23,6 +23,7 @@ # removed user/group error messages, as defence against CVE-2019-14287. - >- ('sudo: unknown user: slartibartfast' in out.module_stderr | default(out.msg)) + or ('chown: slartibartfast: illegal user name' in out.module_stderr | default(out.msg)) or (ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_version == '6.10') fail_msg: out={{out}} when: