kubernetes/staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go

const errBadCertificate

const errNoConfiguration

const errMissingCertPath

const errSignedByUnknownCA

var defaultCluster

var defaultUser

var namedCluster

var groupVersions

var retryBackoff

// TestKubeConfigFile ensures that a kube config file, regardless of validity, is handled properly
func TestKubeConfigFile(t *testing.T) {}

// TestMissingKubeConfigFile ensures that a kube config path to a missing file is handled properly
func TestMissingKubeConfigFile(t *testing.T) {}

// TestTLSConfig ensures that the TLS-based communication between client and server works as expected
func TestTLSConfig(t *testing.T) {}

func TestRequestTimeout(t *testing.T) {}

// TestWithExponentialBackoff ensures that the webhook's exponential backoff support works as expected
func TestWithExponentialBackoff(t *testing.T) {}

func bootstrapTestDir(t *testing.T) string {}

func newKubeConfigFile(config v1.Config) (string, error) {}

func newTestServer(clientCert, clientKey, caCert []byte, handler func(http.ResponseWriter, *http.Request)) (*httptest.Server, error) {}

func TestWithExponentialBackoffContextIsAlreadyCanceled(t *testing.T) {}

func TestWithExponentialBackoffWebhookErrorIsMostImportant(t *testing.T) {}

func TestWithExponentialBackoffWithRetryExhaustedWhileContextIsNotCanceled(t *testing.T) {}

func TestWithExponentialBackoffParametersNotSet(t *testing.T) {}

func TestGenericWebhookWithExponentialBackoff(t *testing.T) {}

func getSingleCounterValueFromRegistry(t *testing.T, r metrics.Gatherer, name string) int {}