From 933bc544300cf535029414cb37d8e17a7f2b028c Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sun, 11 Jun 2023 00:07:35 +0200 Subject: [PATCH] changed tests for new sudoers module --- molecule/with_ssh_keys/tests/test_default.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molecule/with_ssh_keys/tests/test_default.py b/molecule/with_ssh_keys/tests/test_default.py index 5e0d878..7b13baa 100644 --- a/molecule/with_ssh_keys/tests/test_default.py +++ b/molecule/with_ssh_keys/tests/test_default.py @@ -24,7 +24,7 @@ def test_ansible_sudoer(host): assert etc_sudoers_d_ansible.user == "root" assert etc_sudoers_d_ansible.group == "root" assert etc_sudoers_d_ansible.mode == 0o440 - assert etc_sudoers_d_ansible.contains("ansible ALL=(ALL) NOPASSWD: ALL") + assert etc_sudoers_d_ansible.contains("ansible ALL=NOPASSWD:SETENV: ALL") def test_ansible_ssh_authorized_keys(host): """Validate that ansible user has authorized_keys"""