Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMissingKubeConfigFile (0.27 sec)

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

    					t.Errorf("%s: unexpected error message to match:\n  Expected: %s\n  Actual:   %s", tt.test, tt.errRegex, err.Error())
    				}
    			}
    		})
    	}
    }
    
    // TestMissingKubeConfigFile ensures that a kube config path to a missing file is handled properly
    func TestMissingKubeConfigFile(t *testing.T) {
    	kubeConfigPath := "/some/missing/path"
    	_, err := LoadKubeconfig(kubeConfigPath, nil)
    
    	if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 25.8K bytes
    - Viewed (0)
Back to top