(t *testing.T)
| 139 | } |
| 140 | |
| 141 | func TestInsecureOverridesCA(t *testing.T) { |
| 142 | config := createCAValidTestConfig() |
| 143 | clientBuilder := NewNonInteractiveClientConfig(*config, "clean", &ConfigOverrides{ |
| 144 | ClusterInfo: clientcmdapi.Cluster{ |
| 145 | InsecureSkipTLSVerify: true, |
| 146 | }, |
| 147 | }, nil) |
| 148 | |
| 149 | actualCfg, err := clientBuilder.ClientConfig() |
| 150 | if err != nil { |
| 151 | t.Errorf("Unexpected error: %v", err) |
| 152 | } |
| 153 | |
| 154 | matchBoolArg(true, actualCfg.Insecure, t) |
| 155 | matchStringArg("", actualCfg.TLSClientConfig.CAFile, t) |
| 156 | matchByteArg(nil, actualCfg.TLSClientConfig.CAData, t) |
| 157 | } |
| 158 | |
| 159 | func TestMergeContext(t *testing.T) { |
| 160 | const namespace = "overridden-namespace" |
nothing calls this directly
no test coverage detected