tests: explicit sudo rules to require password from sudo_nopw

This account is used on Travis. It needs to be forced to type passwords
in some cases
pull/193/head
David Wilson 7 years ago
parent f7db338d12
commit 6614d17021

@ -56,7 +56,8 @@ also by Ansible's `osx_setup.yml`.
`mitogen__has_sudo_nopw` `mitogen__has_sudo_nopw`
The login password is "has_sudo_nopw_password". It can sudo to root without The login password is "has_sudo_nopw_password". It can sudo to root without
supplying a password. supplying a password. It has explicit sudoers rules forcing it to require a
password for other accounts.
`mitogen__pw_required` `mitogen__pw_required`
The login password is "pw_required_password". When "sudo -u" is used to The login password is "pw_required_password". When "sudo -u" is used to
@ -79,3 +80,11 @@ also by Ansible's `osx_setup.yml`.
`mitogen__webapp` `mitogen__webapp`
A plain old account with no sudo access, used as the target for fakessh A plain old account with no sudo access, used as the target for fakessh
tddests. tddests.
# Ansible Integration Test Environment
The integration tests expect to be run against a either one of the Docker
images, or a similar target with the same set of UNIX accounts and sudo rules.
The login account should be able to sudo to root witout a password.

@ -1,3 +1,6 @@
mitogen__has_sudo_nopw ALL = (mitogen__pw_required) ALL
mitogen__has_sudo_nopw ALL = (mitogen__require_tty_pw_required) ALL
Defaults>mitogen__pw_required targetpw Defaults>mitogen__pw_required targetpw
Defaults>mitogen__require_tty requiretty Defaults>mitogen__require_tty requiretty
Defaults>mitogen__require_tty_pw_required requiretty,targetpw Defaults>mitogen__require_tty_pw_required requiretty,targetpw

Loading…
Cancel
Save