MCPcopy
hub / github.com/kubernetes/client-go / TestValidateEmptyAuthInfo

Function TestValidateEmptyAuthInfo

tools/clientcmd/validation_test.go:277–286  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

275}
276
277func TestValidateEmptyAuthInfo(t *testing.T) {
278 config := clientcmdapi.NewConfig()
279 config.AuthInfos["error"] = &clientcmdapi.AuthInfo{}
280 test := configValidationTest{
281 config: config,
282 }
283
284 test.testAuthInfo("error", t)
285 test.testConfig(t)
286}
287
288func TestValidateCertFilesNotFoundAuthInfo(t *testing.T) {
289 config := clientcmdapi.NewConfig()

Callers

nothing calls this directly

Calls 2

testAuthInfoMethod · 0.95
testConfigMethod · 0.95

Tested by

no test coverage detected