kubernetes/cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

func TestGetKubeConfigSpecsFailsIfCADoesntExists(t *testing.T) {}

func TestGetKubeConfigSpecs(t *testing.T) {}

func TestBuildKubeConfigFromSpecWithClientAuth(t *testing.T) {}

func TestBuildKubeConfigFromSpecWithTokenAuth(t *testing.T) {}

func TestCreateKubeConfigFileIfNotExists(t *testing.T) {}

func TestCreateKubeconfigFilesAndWrappers(t *testing.T) {}

func TestWriteKubeConfigFailsIfCADoesntExists(t *testing.T) {}

func TestWriteKubeConfig(t *testing.T) {}

func TestValidateKubeConfig(t *testing.T) {}

func TestValidateKubeconfigsForExternalCA(t *testing.T) {}

func TestValidateKubeconfigsForExternalCAMissingRoot(t *testing.T) {}

// setupKubeConfigWithClientAuth is a test utility function that wraps buildKubeConfigFromSpec for building a KubeConfig object With ClientAuth
func setupKubeConfigWithClientAuth(t *testing.T, caCert *x509.Certificate, caKey crypto.Signer, notAfter time.Time, apiServer, clientName, clustername string, organizations ...string) *clientcmdapi.Config {}

// setupKubeConfigWithTokenAuth is a test utility function that wraps buildKubeConfigFromSpec for building a KubeConfig object With Token
func setupKubeConfigWithTokenAuth(t *testing.T, caCert *x509.Certificate, apiServer, clientName, token, clustername string) *clientcmdapi.Config {}

func TestEnsureAdminClusterRoleBinding(t *testing.T) {}

func TestEnsureAdminClusterRoleBindingImpl(t *testing.T) {}

func TestCreateKubeConfigAndCSR(t *testing.T) {}

func TestCreateDefaultKubeConfigsAndCSRFiles(t *testing.T) {}