From 6c602b6ba7df6295937f27fdddf338e7254daf46 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 15 Nov 2024 16:20:29 +0100 Subject: [PATCH] OZG-6747 add helm unittest --- src/test/helm/deployment_env_test.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/test/helm/deployment_env_test.yaml b/src/test/helm/deployment_env_test.yaml index 6995a43..53d48ba 100644 --- a/src/test/helm/deployment_env_test.yaml +++ b/src/test/helm/deployment_env_test.yaml @@ -77,4 +77,16 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].env - value: null \ No newline at end of file + value: null + + - it: should by default not have ACTIVE_PROFILE env + set: + env.customList: + my_test_environment_name: "A test value" + asserts: + - notContains: + path: spec.template.spec.containers[0].env + content: + name: ACTIVE_PROFILE + any: true + \ No newline at end of file -- GitLab