mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 12:32:03 +00:00
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,
|
result: config2,
|
||||||
err: nil,
|
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 {
|
for name, test := range testCases {
|
||||||
|
Loading…
Reference in New Issue
Block a user