Skip to content

Commit

Permalink
Merge pull request #332 from SUSE/check_branding
Browse files Browse the repository at this point in the history
Ensure that the branding packages are installed in the containers
  • Loading branch information
dcermak authored Dec 21, 2023
2 parents 03a1113 + 905245d commit f356b54
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,29 @@ def test_os_release(auto_container):
)


@pytest.mark.skipif(
OS_VERSION in ("15.3", "15.4", "15.5", "basalt"),
reason="branding packages are known to not be installed",
)
@pytest.mark.parametrize(
"container",
CONTAINERS_WITH_ZYPPER,
indirect=True,
)
def test_branding(container):
"""
check that the :file:`/etc/SUSE-brand` file exists and containers SLE branding
"""
location = "/etc/SUSE-brand"
branding = "SLE"
if OS_VERSION == "tumbleweed":
branding = "openSUSE"
if OS_VERSION in ("basalt", "tumbleweed"):
location = "/usr/etc/SUSE-brand"
assert container.connection.file(location).exists
assert branding in container.connection.file(location).content_string


def test_product(auto_container):
"""
check that :file:`/etc/products.d/$BASEPRODUCT.prod` exists and
Expand Down

0 comments on commit f356b54

Please sign in to comment.