- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for validPolicyBindings (0.29 sec)
-
pkg/registry/admissionregistration/validatingadmissionpolicybinding/storage/storage_test.go
func TestGet(t *testing.T) { for _, b := range validPolicyBindings() { t.Run(b.Name, func(t *testing.T) { storage, server := newInsecureStorage(t) defer server.Terminate(t) defer storage.Store.DestroyFunc() test := genericregistrytest.New(t, storage.Store).ClusterScope() test.TestGet(b) }) } } func TestList(t *testing.T) { for _, b := range validPolicyBindings() { t.Run(b.Name, func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 20 16:30:09 UTC 2023 - 7.7K bytes - Viewed (0) -
pkg/registry/admissionregistration/validatingadmissionpolicybinding/strategy_test.go
t.Error("PolicyBinding strategy must be cluster scoped") } if strategy.AllowCreateOnUpdate() { t.Errorf("PolicyBinding should not allow create on update") } for _, configuration := range validPolicyBindings() { strategy.PrepareForCreate(ctx, configuration) errs := strategy.Validate(ctx, configuration) if len(errs) != 0 { t.Errorf("Unexpected error validating %v", errs) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 20 16:30:09 UTC 2023 - 3.8K bytes - Viewed (0) -
pkg/registry/admissionregistration/validatingadmissionpolicybinding/authz_test.go
for _, obj := range validPolicyBindings() { errs := strategy.Validate(ctx, obj) if len(errs) > 0 != tc.expectErr { t.Errorf("expected error: %v but got error: %v", tc.expectErr, errs) } } }) t.Run("update", func(t *testing.T) { ctx := request.WithUser(context.Background(), tc.userInfo) for _, obj := range validPolicyBindings() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 20 16:30:09 UTC 2023 - 5.7K bytes - Viewed (0)