- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestIgnoresNilObject (0.3 sec)
-
plugin/pkg/admission/serviceaccount/admission_test.go
err := handler.Admit(context.TODO(), attrs, nil) if err != nil { t.Errorf("Expected non-pod resource allowed, got err: %v", err) } } func TestIgnoresNilObject(t *testing.T) { attrs := admission.NewAttributesRecord(nil, nil, api.Kind("Pod").WithVersion("version"), "myns", "myname", api.Resource("pods").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 17:49:30 UTC 2024 - 36.9K bytes - Viewed (0)