kubernetes/pkg/controlplane/instance_test.go

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

type fakeLocalhost443Listener

func (fakeLocalhost443Listener) Accept() (net.Conn, error) {}

func (fakeLocalhost443Listener) Close() error {}

func (fakeLocalhost443Listener) Addr() net.Addr {}

// TestLegacyRestStorageStrategies ensures that all Storage objects which are using the generic registry Store have
// their various strategies properly wired up. This surfaced as a bug where strategies defined Export functions, but
// they were never used outside of unit tests because the export strategies were not assigned inside the Store.
func TestLegacyRestStorageStrategies(t *testing.T) {}

func TestCertificatesRestStorageStrategies(t *testing.T) {}

func newInstance(t *testing.T) (*Instance, *etcd3testing.EtcdTestServer, CompletedConfig, *assert.Assertions) {}

// TestVersion tests /version
func TestVersion(t *testing.T) {}

func decodeResponse(resp *http.Response, obj interface{}

// Because we need to be backwards compatible with release 1.1, at endpoints
// that exist in release 1.1, the responses should have empty APIVersion.
func TestAPIVersionOfDiscoveryEndpoints(t *testing.T) {}

// This test doesn't cover the apiregistration and apiextensions group, as they are installed by other apiservers.
func TestStorageVersionHashes(t *testing.T) {}

func TestNoAlphaVersionsEnabledByDefault(t *testing.T) {}

func TestNoBetaVersionsEnabledByDefault(t *testing.T) {}

func TestDefaultVars(t *testing.T) {}

func TestNewBetaResourcesEnabledByDefault(t *testing.T) {}

// TestGenericStorageProviders is a smoke test that ensures that the kube
// storage providers and the generic storage providers don't unexpectedly
// divert, i.e. the later is an equally ordered subset.
func TestGenericStorageProviders(t *testing.T) {}