File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -372,21 +372,9 @@ var _ = g.Describe("Authorization [RBAC] [Zalando]", func() {
372
372
// g.It("should allow to create Pods", func() {})
373
373
})
374
374
375
- g .When ("the default service account is in default namespace " , func () {
375
+ g .When ("the service account is the default service account " , func () {
376
376
g .BeforeEach (func () {
377
- tc .data .users = []string {"system:serviceaccount:default:default" }
378
- })
379
- g .It ("should deny to list StatefulSets" , func () {
380
- tc .data .resources = []string {"apps/statefulsets" }
381
- tc .data .verbs = []string {"list" }
382
- tc .run (context .TODO (), cs , false )
383
- gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
384
- })
385
- })
386
-
387
- g .When ("the default service account is in non-default namespace" , func () {
388
- g .BeforeEach (func () {
389
- tc .data .users = []string {"system:serviceaccount:non-default:default" }
377
+ tc .data .users = []string {"system:serviceaccount:default:default" , "system:serviceaccount:non-default:default" }
390
378
})
391
379
g .It ("should deny to list StatefulSets" , func () {
392
380
tc .data .resources = []string {"apps/statefulsets" }
You can’t perform that action at this time.
0 commit comments