Skip to content

Commit

Permalink
Add sanity check to test_all that zypper is actually missing in marke…
Browse files Browse the repository at this point in the history
…d containers
  • Loading branch information
dcermak committed Nov 26, 2024
1 parent bfb998f commit 082584b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from bci_tester.data import BCI_DEVEL_REPO
from bci_tester.data import BCI_REPO_NAME
from bci_tester.data import BUSYBOX_CONTAINER
from bci_tester.data import CONTAINERS_WITHOUT_ZYPPER
from bci_tester.data import CONTAINERS_WITH_ZYPPER
from bci_tester.data import CONTAINERS_WITH_ZYPPER_AS_ROOT
from bci_tester.data import DISTRIBUTION_CONTAINER
Expand Down Expand Up @@ -403,6 +404,17 @@ def test_zypper_verify_passes(container: ContainerData) -> None:
)


@pytest.mark.parametrize("container", CONTAINERS_WITHOUT_ZYPPER, indirect=True)
def test_zypper_not_present_in_containers_without_it(
container: ContainerData,
) -> None:
"""Sanity check that containers which are expected to not contain zypper,
actually do not contain it.
"""
container.connection.run_expect([1, 127], "command -v zypper")


# PCP_CONTAINERS: uses systemd for starting multiple services
# KIWI_CONTAINERS: pulls lvm2 which pulls systemd
@pytest.mark.parametrize(
Expand Down

0 comments on commit 082584b

Please sign in to comment.