@@ -13,6 +13,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
'/etc/pip_check_requirements_upgrades-py3/',
'/var/lib/pipreqcheck/virtualenv-py3/',
'/etc/cron.d/check_pip_requirements-py3',
'/etc/ntp.conf',
])
def test_deprecated_paths_are_absent(host, path):
"""
@@ -21,3 +22,15 @@ def test_deprecated_paths_are_absent(host, path):
with host.sudo():
assert not host.file(path).exists
@pytest.mark.parametrize('package', [
'ntp',
'ntpdate',
def test_deprecated_packages_are_absent(host, package):
Tests if deprecated pacakges are absent.
assert not host.package(package).is_installed