Files @ 341f6d0f5072
Branch filter:

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

branko
MAR-181: Added workaround for Debian Buster tests:

- The upstream has dropped the repositories for Debian Buster.
- Depend on alternative repository set-up on Majic servers.
- Not a permanent fix, but at least it keeps the tests going.
import os

import testinfra.utils.ansible_runner


testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
    os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('parameters-mandatory')


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

    config = host.file('/etc/ldap/ldap.conf')

    assert config.content_string == ""