Skip to content

Commit

Permalink
[WIP] Update deployment test - operator
Browse files Browse the repository at this point in the history
  • Loading branch information
arybolovlev committed Jan 3, 2025
1 parent 0bf7bb8 commit 91bd86a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion charts/test/unit/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,14 +405,22 @@ func TestDeploymentOperatorSyncPeriod(t *testing.T) {
assert.Equal(t, d, deployment)
}

// TODO
func TestDeploymentOperatorWatchedNamespaces(t *testing.T) {
options := &helm.Options{
SetValues: map[string]string{
"operator.watchedNamespaces": `{white,blue,red}`,
},
Version: helmChartVersion,
}
deployment := renderDeploymentManifest(t, options)
d := defaultDeployment()

d.Spec.Template.Spec.Containers[0].Args = append(d.Spec.Template.Spec.Containers[0].Args, []string{
"--namespace=white",
"--namespace=blue",
"--namespace=red",
}...)

assert.Equal(t, d, deployment)
}

Expand Down

0 comments on commit 91bd86a

Please sign in to comment.