@@ -225,17 +225,11 @@ var _ = g.Describe("Authorization [RBAC] [Zalando]", func() {
225
225
tc .data .resources = namespacedResources
226
226
tc .data .verbs = writeOperations
227
227
})
228
- // These should be covered by the admission-controller tests. They will
229
- // be skipped here. Later when we cover everything with RBAC, we can run them again.
230
228
g .It ("should deny write access in kube-system and visibility namespaces" , func () {
231
- tc .data .namespaces = []string {"kube-system" , "visibility" }
232
- tc .run (context .TODO (), cs , false )
233
- gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
229
+ g .Skip ("handled by admission-controller" )
234
230
})
235
231
g .It ("should allow write access in namespaces other than kube-system and visibility" , func () {
236
- tc .data .namespaces = []string {"default" , "teapot" }
237
- tc .run (context .TODO (), cs , true )
238
- gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
232
+ g .Skip ("handled by admission-controller" )
239
233
})
240
234
})
241
235
g .When ("the resource is a global resource" , func () {
@@ -305,27 +299,17 @@ var _ = g.Describe("Authorization [RBAC] [Zalando]", func() {
305
299
tc .run (context .TODO (), cs , true )
306
300
gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
307
301
})
308
- // This should be covered by the admission-controller tests. It will
309
- // be skipped here. Later when we cover everything with RBAC, we can run it again.
310
302
g .It ("should deny deletion of kube-system or visibility namespaces" , func () {
311
- tc .data .resources = []string {"namespaces" }
312
- tc .data .names = []string {"kube-system" , "visibility" }
313
- tc .data .verbs = []string {"delete" }
314
- tc .run (context .TODO (), cs , false )
315
- gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
303
+ g .Skip ("handled by admission-controller" )
316
304
})
317
305
318
306
g .When ("the resource is a namespaced resource" , func () {
319
307
g .BeforeEach (func () {
320
308
tc .data .resources = namespacedResources
321
309
tc .data .verbs = writeOperations
322
310
})
323
- // This should be covered by the admission-controller tests. It will
324
- // be skipped here. Later when we cover everything with RBAC, we can run it again.
325
311
g .It ("should deny write access in kube-system namespace" , func () {
326
- tc .data .namespaces = []string {"kube-system" }
327
- tc .run (context .TODO (), cs , false )
328
- gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
312
+ g .Skip ("handled by admission-controller" )
329
313
})
330
314
g .It ("should allow write access in namespaces other than kube-system" , func () {
331
315
tc .data .namespaces = []string {"default" , "teapot" }
0 commit comments