Skip to content

Commit 91bd86a

Browse files
committed
[WIP] Update deployment test - operator
1 parent 0bf7bb8 commit 91bd86a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

charts/test/unit/deployment_test.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,22 @@ func TestDeploymentOperatorSyncPeriod(t *testing.T) {
405405
assert.Equal(t, d, deployment)
406406
}
407407

408-
// TODO
409408
func TestDeploymentOperatorWatchedNamespaces(t *testing.T) {
410409
options := &helm.Options{
410+
SetValues: map[string]string{
411+
"operator.watchedNamespaces": `{white,blue,red}`,
412+
},
411413
Version: helmChartVersion,
412414
}
413415
deployment := renderDeploymentManifest(t, options)
414416
d := defaultDeployment()
415417

418+
d.Spec.Template.Spec.Containers[0].Args = append(d.Spec.Template.Spec.Containers[0].Args, []string{
419+
"--namespace=white",
420+
"--namespace=blue",
421+
"--namespace=red",
422+
}...)
423+
416424
assert.Equal(t, d, deployment)
417425
}
418426

0 commit comments

Comments
 (0)