Files @ acd104ed9b5e
Branch filter:

Location: majic-ansible-roles/roles/xmpp_server/molecule/default/tests/test_default_buster.py - annotation

branko
MAR-151: Switch to using PyMySQL module for database and database_server role:

- Explicitly specify the path to MariaDB unix socket to enforce unix
socket authentication.
import os

import testinfra.utils.ansible_runner


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


def test_lua_ldap_pin_and_version(host):
    """
    Tests if lua-ldap package is not pinned to the backports
    repository.
    """

    pin_configuration_file = host.file("/etc/apt/preferences.d/lua-ldap")
    lua_ldap = host.package("lua-ldap")

    assert not pin_configuration_file.exists
    assert "bpo" not in lua_ldap.version