mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 06:32:32 +00:00
kubecfg: improve tests around authentication
This change adds additional test coverage for the kubecfg command. There is now a test for the case when the auth info file does not exist. LoadAuthInfo tests have been refactored to use table testing.
This commit is contained in:
@@ -130,7 +130,7 @@ func main() {
|
||||
|
||||
var auth *kube_client.AuthInfo
|
||||
if secure {
|
||||
auth, err = kubecfg.LoadAuthInfo(*authConfig)
|
||||
auth, err = kubecfg.LoadAuthInfo(*authConfig, os.Stdin)
|
||||
if err != nil {
|
||||
glog.Fatalf("Error loading auth: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user