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 13, 2023
1 parent c9ae599 commit 4981986
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 @@ -88,6 +88,23 @@ def test_os_release(auto_container):
== expected_value
)

@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):
"""
Expand Down

0 comments on commit 4981986

Please sign in to comment.