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:
Kelsey Hightower
2014-07-26 15:00:37 -07:00
parent 6b5690a259
commit 1ca199379f
3 changed files with 57 additions and 35 deletions

View File

@@ -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)
}