(t *testing.T)
| 375 | } |
| 376 | |
| 377 | func TestCreateClean(t *testing.T) { |
| 378 | config := createValidTestConfig() |
| 379 | clientBuilder := NewNonInteractiveClientConfig(*config, "clean", &ConfigOverrides{}, nil) |
| 380 | |
| 381 | clientConfig, err := clientBuilder.ClientConfig() |
| 382 | if err != nil { |
| 383 | t.Errorf("Unexpected error: %v", err) |
| 384 | } |
| 385 | |
| 386 | matchStringArg(config.Clusters["clean"].Server, clientConfig.Host, t) |
| 387 | matchStringArg("", clientConfig.APIPath, t) |
| 388 | matchBoolArg(config.Clusters["clean"].InsecureSkipTLSVerify, clientConfig.Insecure, t) |
| 389 | matchStringArg(config.AuthInfos["clean"].Token, clientConfig.BearerToken, t) |
| 390 | } |
| 391 | |
| 392 | func TestCreateCleanWithPrefix(t *testing.T) { |
| 393 | tt := []struct { |
nothing calls this directly
no test coverage detected