Skip to content

Commit

Permalink
Test that the compat packages are not in any container
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmueller committed Aug 9, 2023
1 parent cc73185 commit 36ba1f8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,20 @@ def test_systemd_not_installed_in_all_containers_except_init(container):
assert not container.connection.package("systemd").is_installed


@pytest.mark.parametrize(
"container",
ALL_CONTAINERS,
indirect=True,
)
def test_no_compat_packages(container):
"""Ensure that no host-compatibility packages are installed in the containers"""
# we cannot check for an existing package if rpm is not installed
if container.connection.exists("rpm"):
assert not container.connection.package(
"compat-usrmerge-tools"
).is_installed


@pytest.mark.parametrize("runner", ALL_CONTAINERS)
def test_certificates_are_present(
host, tmp_path, container_runtime, runner: Container, pytestconfig: Config
Expand Down

0 comments on commit 36ba1f8

Please sign in to comment.