Select Git revision
app_oldap.py
-
Jose Manuel Lopez Lujan authored
- Three configuration directives have been added: LDAP_OPENLDAP, LDAP_GROUP_MEMBER_FILTER, LDAP_GROUP_MEMBER_FILTER_FIELD - Examples: basic_auth/app_oldap.py and groups/app_oldap.py - Updated README.md with a more instructions closes #16 closes #15 closes #14
Jose Manuel Lopez Lujan authored- Three configuration directives have been added: LDAP_OPENLDAP, LDAP_GROUP_MEMBER_FILTER, LDAP_GROUP_MEMBER_FILTER_FIELD - Examples: basic_auth/app_oldap.py and groups/app_oldap.py - Updated README.md with a more instructions closes #16 closes #15 closes #14
test_example.py 310 B
from testinfra.utils.ansible_runner import AnsibleRunner
testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all')
def test_example(Command):
assert Command('uname').rc == 0
def test_root(Command, Sudo):
with Sudo():
assert Command('whoami').stdout.strip() == 'root'