From 8e5f40b032b67cefeae0de216bdb32548de776dd Mon Sep 17 00:00:00 2001 From: justusbunsi Date: Fri, 5 Jul 2024 20:23:19 +0200 Subject: [PATCH] Add major dependency check test for Redis Signed-off-by: justusbunsi --- unittests/dependency-major-image-check.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/unittests/dependency-major-image-check.yaml b/unittests/dependency-major-image-check.yaml index 1855c17..2646ade 100644 --- a/unittests/dependency-major-image-check.yaml +++ b/unittests/dependency-major-image-check.yaml @@ -42,3 +42,16 @@ tests: path: spec.template.spec.containers[0].image # IN CASE OF AN INTENTIONAL MAJOR BUMP, ADJUST THIS TEST pattern: bitnami/redis-cluster:7.+$ + - it: "[redis] ensures we detect major image version upgrades" + template: charts/redis/templates/master/application.yaml + set: + redis-cluster: + enabled: false + redis: + enabled: true + asserts: + - documentIndex: 0 + matchRegex: + path: spec.template.spec.containers[0].image + # IN CASE OF AN INTENTIONAL MAJOR BUMP, ADJUST THIS TEST + pattern: bitnami/redis:7.+$