Skip to content

Commit

Permalink
testmap: Add cockpit ws-container RHEL 8.10 test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt authored and jelly committed Oct 28, 2024
1 parent 07785f8 commit e01d145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/testmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def contexts(image: str, *scenarios: Iterable[str], repo: str | None = None) ->
*contexts(TEST_OS_DEFAULT, ['firefox'], COCKPIT_SCENARIOS),
# no udisks on CoreOS → skip storage
*contexts('fedora-coreos', COCKPIT_SCENARIOS - {'storage'}),
*contexts('rhel-8-10', ['ws-container'], COCKPIT_SCENARIOS),
*contexts('rhel-9-6', COCKPIT_SCENARIOS),
*contexts('rhel-10-0', COCKPIT_SCENARIOS),
*contexts('centos-10', COCKPIT_SCENARIOS),
Expand Down
3 changes: 2 additions & 1 deletion test/test_testmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def test_cockpit_contexts() -> None:
# no three-part scenarios, no scenario-less contexts
for context in main_tests:
assert context.count("/") == 1, f"malformed context {context}"
assert context.split("/")[1].count("-") in [0, 1], \
# ws-container is the scenario name, but we want to count it as 1
assert context.split("/")[1].replace("ws-container", "ws_container").count("-") in [0, 1], \
f"context {context} has unexpected number of scenarios"
# standard image with standard scenarios
assert "arch/networking" in main_tests
Expand Down

0 comments on commit e01d145

Please sign in to comment.