kubernetes/plugin/pkg/admission/certificates/approval/admission_test.go

func TestPlugin_Validate(t *testing.T) {}

type fakeAuthorizer

func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {}

type testAttributes

func (t *testAttributes) GetResource() schema.GroupVersionResource {}

func (t *testAttributes) GetSubresource() string {}

func (t *testAttributes) GetObject() runtime.Object {}

func (t *testAttributes) GetOldObject() runtime.Object {}

func (t *testAttributes) GetName() string {}

func (t *testAttributes) GetOperation() admission.Operation {}

func (t *testAttributes) GetUserInfo() user.Info {}