Skip to content

Commit

Permalink
Merge pull request #285 from SUSE/zypper_verify
Browse files Browse the repository at this point in the history
Add a zypper verify test
  • Loading branch information
dcermak authored Aug 11, 2023
2 parents c410cd0 + 5435c32 commit f5c08dd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,23 @@ def test_zypper_dup_works(container_per_test: ContainerData) -> None:
)


@pytest.mark.parametrize(
"container_per_test", CONTAINERS_WITH_ZYPPER, indirect=True
)
def test_zypper_verify_passes(container_per_test: ContainerData) -> None:
"""Check that there are no packages missing according to zypper verify so that
users of the container would not get excessive dependencies installed.
"""
repo_name = "repo-oss" if OS_VERSION == "tumbleweed" else "SLE_BCI"

assert (
"Dependencies of all installed packages are satisfied."
in container_per_test.connection.run_expect(
[0], f"timeout 5m env LC_ALL=C zypper -n verify -D"
).stdout.strip()
)


@pytest.mark.parametrize(
"container",
[
Expand Down

0 comments on commit f5c08dd

Please sign in to comment.