Skip to content

Commit b060cbd

Browse files
committed
add failing test for merging envvars from subscription.config
Signed-off-by: Joe Lanford <[email protected]>
1 parent d3ba073 commit b060cbd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkg/controller/operators/olm/overrides/inject/inject_test.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package inject_test
33
import (
44
"testing"
55

6-
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/olm/overrides/inject"
76
"github.com/stretchr/testify/assert"
87
corev1 "k8s.io/api/core/v1"
98
"k8s.io/apimachinery/pkg/api/resource"
9+
10+
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/olm/overrides/inject"
1011
)
1112

1213
var (
@@ -386,6 +387,10 @@ func TestInjectEnvIntoDeployment(t *testing.T) {
386387
},
387388
},
388389
envVar: []corev1.EnvVar{
390+
corev1.EnvVar{
391+
Name: "extra",
392+
Value: "extra_value",
393+
},
389394
corev1.EnvVar{
390395
Name: "foo",
391396
Value: "new_foo_value",
@@ -407,6 +412,10 @@ func TestInjectEnvIntoDeployment(t *testing.T) {
407412
Name: "bar",
408413
Value: "new_bar_value",
409414
},
415+
corev1.EnvVar{
416+
Name: "extra",
417+
Value: "extra_value",
418+
},
410419
},
411420
},
412421
},

0 commit comments

Comments
 (0)