Files @ 490c7b153f52
Branch filter:

Location: majic-ansible-roles/roles/ldap_client/tests/test_mandatory.py

branko
Noticket: Improved logic behind a couple of tests that use commands to ensure a specific error is happening for tests to pass.
import testinfra.utils.ansible_runner

testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
    '.molecule/ansible_inventory').get_hosts('parameters-mandatory')


def test_ldap_configuration_file_content(File):
    """
    Tests if LDAP configuration file has correct content
    """

    config = File('/etc/ldap/ldap.conf')

    assert config.content == ""