From 50dde2a21b0d13effa5220c0ab7e109b738abf59 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Thu, 14 Apr 2022 11:40:25 +0200 Subject: [PATCH] unit test need to reflect on empty envVars if no configmap or secret are defined --- pkg/cluster/k8sres_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cluster/k8sres_test.go b/pkg/cluster/k8sres_test.go index bf975b84f..7a1bdeaf9 100644 --- a/pkg/cluster/k8sres_test.go +++ b/pkg/cluster/k8sres_test.go @@ -250,6 +250,7 @@ func TestPodEnvironmentConfigMapVariables(t *testing.T) { }{ { subTest: "no PodEnvironmentConfigMap", + envVars: []v1.EnvVar{}, }, { subTest: "missing PodEnvironmentConfigMap", @@ -324,6 +325,7 @@ func TestPodEnvironmentSecretVariables(t *testing.T) { }{ { subTest: "No PodEnvironmentSecret configured", + envVars: []v1.EnvVar{}, }, { subTest: "Secret referenced by PodEnvironmentSecret does not exist",