File tree 3 files changed +16
-2
lines changed
pkg/authorization/registry
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func (m *VirtualStorage) NewList() runtime.Object {
47
47
}
48
48
49
49
func (m * VirtualStorage ) List (ctx kapi.Context , options * kapi.ListOptions ) (runtime.Object , error ) {
50
- policyList , err := m .PolicyStorage .ListPolicies (ctx , options )
50
+ policyList , err := m .PolicyStorage .ListPolicies (ctx , & kapi. ListOptions {} )
51
51
if err != nil {
52
52
return nil , err
53
53
}
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func (m *VirtualStorage) NewList() runtime.Object {
54
54
}
55
55
56
56
func (m * VirtualStorage ) List (ctx kapi.Context , options * kapi.ListOptions ) (runtime.Object , error ) {
57
- policyBindingList , err := m .BindingRegistry .ListPolicyBindings (ctx , options )
57
+ policyBindingList , err := m .BindingRegistry .ListPolicyBindings (ctx , & kapi. ListOptions {} )
58
58
if err != nil {
59
59
return nil , err
60
60
}
Original file line number Diff line number Diff line change @@ -267,6 +267,20 @@ os::cmd::expect_success "oadm policy reconcile-cluster-role-bindings --confirm"
267
267
echo " admin-role-reapers: ok"
268
268
os::test::junit::declare_suite_end
269
269
270
+ os::test::junit::declare_suite_start " cmd/admin/role-selectors"
271
+ os::cmd::expect_success " oc create -f test/extended/testdata/roles/policy-clusterroles.yaml"
272
+ os::cmd::expect_success " oc get clusterrole/basic-user2"
273
+ os::cmd::expect_success " oc label clusterrole/basic-user2 foo=bar"
274
+ os::cmd::expect_success_and_not_text " oc get clusterroles --selector=foo=bar" " No resources found"
275
+ os::cmd::expect_success_and_text " oc get clusterroles --selector=foo=unknown" " No resources found"
276
+ os::cmd::expect_success " oc get clusterrolebinding/basic-users2"
277
+ os::cmd::expect_success " oc label clusterrolebinding/basic-users2 foo=bar"
278
+ os::cmd::expect_success_and_not_text " oc get clusterrolebindings --selector=foo=bar" " No resources found"
279
+ os::cmd::expect_success_and_text " oc get clusterroles --selector=foo=unknown" " No resources found"
280
+ os::cmd::expect_success " oc delete clusterrole/basic-user2"
281
+ os::test::junit::declare_suite_end
282
+ echo " admin-role-selectors: ok"
283
+
270
284
os::test::junit::declare_suite_start " cmd/admin/ui-project-commands"
271
285
# Test the commands the UI projects page tells users to run
272
286
# These should match what is described in projects.html
You can’t perform that action at this time.
0 commit comments