fixed test following sudoers changes

This commit is contained in:
Bertrand Lanson 2023-06-10 22:54:30 +02:00
parent e191d1a5d5
commit 2a182f71dc

View File

@ -23,7 +23,7 @@ def test_ansible_sudoer(host):
assert etc_sudoers_d_ansible.exists assert etc_sudoers_d_ansible.exists
assert etc_sudoers_d_ansible.user == "root" assert etc_sudoers_d_ansible.user == "root"
assert etc_sudoers_d_ansible.group == "root" assert etc_sudoers_d_ansible.group == "root"
assert etc_sudoers_d_ansible.mode == 0o640 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=(ALL) NOPASSWD: ALL")
def test_ansible_ssh_authorized_keys(host): def test_ansible_ssh_authorized_keys(host):