(t *testing.T)
| 206 | } |
| 207 | |
| 208 | func TestValidateEmptyClusterInfo(t *testing.T) { |
| 209 | config := clientcmdapi.NewConfig() |
| 210 | config.Clusters["empty"] = clientcmdapi.NewCluster() |
| 211 | test := configValidationTest{ |
| 212 | config: config, |
| 213 | expectedErrorSubstring: []string{"cluster has no server defined"}, |
| 214 | } |
| 215 | |
| 216 | test.testCluster("empty", t) |
| 217 | test.testConfig(t) |
| 218 | } |
| 219 | |
| 220 | func TestValidateClusterInfoErrEmptyCluster(t *testing.T) { |
| 221 | cluster := clientcmdapi.NewCluster() |
nothing calls this directly
no test coverage detected