mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-21 09:30:47 +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",
|
subTest: "no PodEnvironmentConfigMap",
|
||||||
|
envVars: []v1.EnvVar{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
subTest: "missing PodEnvironmentConfigMap",
|
subTest: "missing PodEnvironmentConfigMap",
|
||||||
@@ -324,6 +325,7 @@ func TestPodEnvironmentSecretVariables(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
subTest: "No PodEnvironmentSecret configured",
|
subTest: "No PodEnvironmentSecret configured",
|
||||||
|
envVars: []v1.EnvVar{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
subTest: "Secret referenced by PodEnvironmentSecret does not exist",
|
subTest: "Secret referenced by PodEnvironmentSecret does not exist",
|
||||||
|
|||||||
Reference in New Issue
Block a user