Skip to content

Commit 06b4c4f

Browse files
committed
fix test cases
1 parent 66e2269 commit 06b4c4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/authorization.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ var _ = g.Describe("Authorization [RBAC] [Zalando]", func() {
283283
g.It("should allow write access to DaemonSets", func() {
284284
tc.data.resources = []string{"apps/daemonsets"}
285285
tc.data.verbs = []string{"create", "update", "delete", "patch"}
286+
tc.data.namespaces = []string{"visibility"}
286287
tc.run(context.TODO(), cs, true)
287288
gomega.Expect(tc.output.passed).To(gomega.BeTrue(), tc.output.String())
288289
})
@@ -294,7 +295,7 @@ var _ = g.Describe("Authorization [RBAC] [Zalando]", func() {
294295
})
295296
g.It("should deny deletion of kube-system or visibility namespaces", func() {
296297
tc.data.resources = []string{"namespaces"}
297-
tc.data.namespaces = []string{"kube-system", "visibility"}
298+
tc.data.names = []string{"kube-system", "visibility"}
298299
tc.data.verbs = []string{"delete"}
299300
tc.run(context.TODO(), cs, false)
300301
gomega.Expect(tc.output.passed).To(gomega.BeTrue(), tc.output.String())

0 commit comments

Comments
 (0)