Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AssertKubeConfigCurrentAuthInfoWithToken (0.38 sec)

  1. cmd/kubeadm/test/kubeconfig/util.go

    	certstestutil.AssertCertificateHasOrganizations(t, currentClientCert, expectedOrganizations...)
    }
    
    // AssertKubeConfigCurrentAuthInfoWithToken is a utility function for kubeadm testing that asserts if the CurrentAuthInfo in
    // the given KubeConfig object refers to expected token
    func AssertKubeConfigCurrentAuthInfoWithToken(t *testing.T, config *clientcmdapi.Config, expectedClientName, expectedToken string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/kubeconfig_test.go

    			}
    
    			if test.withToken {
    				// checks that kubeconfig files have expected token
    				kubeconfigtestutil.AssertKubeConfigCurrentAuthInfoWithToken(t, config, "myUser", "123456")
    			}
    
    			if len(test.clusterName) > 0 {
    				// checks that kubeconfig files have expected cluster name
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    	// Asserts spec data are propagated to the kubeconfig
    	kubeconfigtestutil.AssertKubeConfigCurrentCluster(t, config, "https://1.2.3.4:1234", caCert)
    	kubeconfigtestutil.AssertKubeConfigCurrentAuthInfoWithToken(t, config, "myClientName", "123456")
    }
    
    func TestCreateKubeConfigFileIfNotExists(t *testing.T) {
    
    	// Creates a CAs
    	caCert, caKey := certstestutil.SetupCertificateAuthority(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top