- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for nonResource (0.13 sec)
-
pkg/registry/authorization/subjectaccessreview/rest_test.go
expectedErr string expectedAttrs authorizer.Attributes expectedStatus authorizationapi.SubjectAccessReviewStatus }{ "empty": { expectedErr: "nonResourceAttributes or resourceAttributes", }, "nonresource rejected": { spec: authorizationapi.SubjectAccessReviewSpec{ User: "bob", NonResourceAttributes: &authorizationapi.NonResourceAttributes{Verb: "get", Path: "/mypath"}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 25 16:06:18 UTC 2023 - 6.3K bytes - Viewed (0) -
pkg/registry/authorization/util/helpers_test.go
type args struct { spec authorizationapi.SubjectAccessReviewSpec } tests := []struct { name string args args want authorizer.AttributesRecord }{ { name: "nonresource", args: args{ spec: authorizationapi.SubjectAccessReviewSpec{ User: "bob", Groups: []string{user.AllAuthenticated},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 25 16:06:18 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/apis/authorization/validation/validation_test.go
ResourceAttributes: &authorizationapi.ResourceAttributes{}, User: "user", }, }, msg: "must match metadata.namespace", }, { name: "nonresource", obj: &authorizationapi.LocalSubjectAccessReview{ ObjectMeta: metav1.ObjectMeta{Namespace: "a"}, Spec: authorizationapi.SubjectAccessReviewSpec{ NonResourceAttributes: &authorizationapi.NonResourceAttributes{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 07:48:42 UTC 2023 - 6.3K bytes - Viewed (0)