Skip to content

Commit

Permalink
Ensure that the branding packages are installed in the containers
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmueller committed Nov 14, 2023
1 parent c9ae599 commit d36a75b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,24 @@ def test_os_release(auto_container):
)


@pytest.mark.skipif(
OS_VERSION in ("15.3", "15.4", "15.5"),
reason="branding packages are known to not be installed",
)
def test_branding(auto_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 auto_container.connection.file(location).exists
assert branding in auto_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 d36a75b

Please sign in to comment.