Add a test to verify that the client config is returned when default config is invalid.

This commit is contained in:
Madhusudan.C.S 2016-09-13 15:34:56 -07:00
parent 0433fe0d72
commit c4acaa6717

View File

@ -172,6 +172,16 @@ func TestInClusterConfig(t *testing.T) {
result: config2,
err: nil,
},
"in-cluster not checked when default is invalid": {
defaultConfig: &DefaultClientConfig,
clientConfig: &testClientConfig{config: config2},
icc: &testICC{},
checkedICC: false,
result: config2,
err: nil,
},
}
for name, test := range testCases {