func TestV1beta1NewFromConfig(t *testing.T) { … }
type V1beta1Service …
func NewV1beta1TestServer(s V1beta1Service, cert, key, caCert []byte) (*httptest.Server, error) { … }
type mockV1beta1Service …
func (m *mockV1beta1Service) Review(r *authorizationv1beta1.SubjectAccessReview) { … }
func (m *mockV1beta1Service) Allow() { … }
func (m *mockV1beta1Service) Deny() { … }
func (m *mockV1beta1Service) HTTPStatusCode() int { … }
func newV1beta1Authorizer(callbackURL string, clientCert, clientKey, ca []byte, cacheTime time.Duration) (*WebhookAuthorizer, error) { … }
func TestV1beta1TLSConfig(t *testing.T) { … }
type recorderV1beta1Service …
func (rec *recorderV1beta1Service) Review(r *authorizationv1beta1.SubjectAccessReview) { … }
func (rec *recorderV1beta1Service) Last() (authorizationv1beta1.SubjectAccessReview, error) { … }
func (rec *recorderV1beta1Service) HTTPStatusCode() int { … }
func TestV1beta1Webhook(t *testing.T) { … }
func TestV1beta1WebhookCache(t *testing.T) { … }