Add a test to verify that the client config is returned when default config is invalid.
This commit is contained in:
parent
0433fe0d72
commit
c4acaa6717
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user