mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 10:52:01 +02:00
unit test need to reflect on empty envVars if no configmap or secret are defined
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user