Files
@ 814be5def61d
Branch filter:
Location: majic-ansible-roles/roles/xmpp_server/molecule/default/tests/test_default_bullseye.py - annotation
814be5def61d
706 B
text/x-python
MAR-189: Added support for Debian 11 Bullseye to xmpp_server role:
- Roll-out LDAP client configuration since Bullseye does not come with
a stock one at /etc/ldap/ldap.conf that sets the trust anchor
correctly for validating LDAP server certificates.
- Drop the backports pinning in case of Bullseye (for now let's try to
keep the Buster and Bullseye at same versions for simplicity).
- Drop installation of Python apt bindings (no longer used).
- Tests for Buster and Bullseye need to be split-up a bit due to some
differences around backports etc.
- Roll-out LDAP client configuration since Bullseye does not come with
a stock one at /etc/ldap/ldap.conf that sets the trust anchor
correctly for validating LDAP server certificates.
- Drop the backports pinning in case of Bullseye (for now let's try to
keep the Buster and Bullseye at same versions for simplicity).
- Drop installation of Python apt bindings (no longer used).
- Tests for Buster and Bullseye need to be split-up a bit due to some
differences around backports etc.
814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d 814be5def61d | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('parameters-*-bullseye')
def test_backports_prosody_pinning_absent(host):
"""
Tests if the Prosody backports pinning is absent.
"""
pin = host.file("/etc/apt/preferences.d/prosody")
assert not pin.exists
prosody_package = host.package("prosody")
prosody_modules_package = host.package("prosody-modules")
lua_ldap_package = host.package("lua-sec")
assert "bpo" not in prosody_package.version
assert "bpo" not in prosody_modules_package.version
assert "bpo" not in lua_ldap_package.version
|