changed tests for new sudoers module

This commit is contained in:
Bertrand Lanson 2023-06-11 00:07:35 +02:00
parent 2a182f71dc
commit 933bc54430

View File

@ -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"""