Skip to content

Commit a94041c

Browse files
committed
fix(test): correct regex group name in headless shell test
The test used group("commands") but the regex defines group("artifacts").
1 parent f1fdf27 commit a94041c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deploy/docker/tests/test_security_container_posture.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def test_playwright_headless_shell_is_copied_to_runtime_cache(self, dockerfile):
6767
re.DOTALL,
6868
)
6969
assert cache_copy, "Dockerfile must copy Playwright artifacts into appuser's cache"
70-
assert "chromium-*" in cache_copy.group("commands")
71-
assert "chromium_headless_shell-*" in cache_copy.group("commands")
70+
assert "chromium-*" in cache_copy.group("artifacts")
71+
assert "chromium_headless_shell-*" in cache_copy.group("artifacts")
7272

7373
def test_runs_as_non_root(self, dockerfile):
7474
assert re.search(r"^USER\s+appuser", dockerfile, re.MULTILINE)

0 commit comments

Comments
 (0)