kubernetes/staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

const extensionsGroupName

var v1GroupVersion

var scheme

var codecs

var parameterCodec

func init() {}

func buildTestOpenAPIDefinition() kubeopenapi.OpenAPIDefinition {}

func testGetOpenAPIDefinitions(_ kubeopenapi.ReferenceCallback) map[string]kubeopenapi.OpenAPIDefinition {}

// setUp is a convience function for setting up for (most) tests.
func setUp(t *testing.T) (Config, *assert.Assertions) {}

func newMaster(t *testing.T) (*GenericAPIServer, Config, *assert.Assertions) {}

// TestNew verifies that the New function returns a GenericAPIServer
// using the configuration properly.
func TestNew(t *testing.T) {}

// Verifies that AddGroupVersions works as expected.
func TestInstallAPIGroups(t *testing.T) {}

func TestPrepareRun(t *testing.T) {}

func TestUpdateOpenAPISpec(t *testing.T) {}

// TestCustomHandlerChain verifies the handler chain with custom handler chain builder functions.
func TestCustomHandlerChain(t *testing.T) {}

// TestNotRestRoutesHaveAuth checks that special non-routes are behind authz/authn.
func TestNotRestRoutesHaveAuth(t *testing.T) {}

func TestMuxAndDiscoveryCompleteSignals(t *testing.T) {}

type mockAuthorizer

func (authz *mockAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {}

type testGetterStorage

func (p *testGetterStorage) NamespaceScoped() bool {}

func (p *testGetterStorage) New() runtime.Object {}

func (p *testGetterStorage) Destroy() {}

func (p *testGetterStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) {}

func (p *testGetterStorage) GetSingularName() string {}

type testNoVerbsStorage

func (p *testNoVerbsStorage) NamespaceScoped() bool {}

func (p *testNoVerbsStorage) New() runtime.Object {}

func (p *testNoVerbsStorage) Destroy() {}

func (p *testNoVerbsStorage) GetSingularName() string {}

func fakeVersion() version.Info {}

// TestGracefulShutdown verifies server shutdown after request handler finish.
func TestGracefulShutdown(t *testing.T) {}

func TestWarningWithRequestTimeout(t *testing.T) {}

// builds a handler chain with the given user handler as used by GenericAPIServer.
func newGenericAPIServerHandlerChain(t *testing.T, path string, handler http.Handler) http.Handler {}