fix(tests): quote regex patterns in matchRegex assertions

Fix YAML syntax errors where patterns containing colons need to be quoted
to avoid being interpreted as YAML mapping values.

Affected files:
- deployment_image_test.yaml
- regression_defaults_test.yaml

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
Aleksei SviridkinandClaude committed 2025-11-08 17:35:14 +03:00 Unverified
1 parent 9e5d0b8b2e
commit 1bf9f72101
2 files changed
+4 -4

No files matched your search

@@ -18,7 +18,7 @@ tests:
asserts: asserts:
- matchRegex: - matchRegex:
path: spec.template.spec.containers[0].image path: spec.template.spec.containers[0].image
pattern: ^ghcr\.io/jellyfin/jellyfin: pattern: "^ghcr\\.io/jellyfin/jellyfin:"
- it: should use private registry - it: should use private registry
set: set:
@@ -26,7 +26,7 @@ tests:
asserts: asserts:
- matchRegex: - matchRegex:
path: spec.template.spec.containers[0].image path: spec.template.spec.containers[0].image
pattern: ^registry\.example\.com/jellyfin/jellyfin: pattern: "^registry\\.example\\.com/jellyfin/jellyfin:"
# ============================================================================= # =============================================================================
# IMAGE TAG # IMAGE TAG
@@ -36,7 +36,7 @@ tests:
asserts: asserts:
- matchRegex: - matchRegex:
path: spec.template.spec.containers[0].image path: spec.template.spec.containers[0].image
pattern: :RELEASE-VERSION$ pattern: ":RELEASE-VERSION$"
- it: should use custom tag when specified - it: should use custom tag when specified
set: set:
@@ -39,7 +39,7 @@ tests:
asserts: asserts:
- matchRegex: - matchRegex:
path: spec.template.spec.containers[0].image path: spec.template.spec.containers[0].image
pattern: ^jellyfin/jellyfin: pattern: "^jellyfin/jellyfin:"
- it: should use IfNotPresent pullPolicy by default - it: should use IfNotPresent pullPolicy by default
template: deployment.yaml template: deployment.yaml