()
| 110 | } |
| 111 | |
| 112 | func createValidTestConfig() *clientcmdapi.Config { |
| 113 | const ( |
| 114 | server = "https://anything.com:8080" |
| 115 | token = "the-token" |
| 116 | ) |
| 117 | |
| 118 | config := clientcmdapi.NewConfig() |
| 119 | config.Clusters["clean"] = &clientcmdapi.Cluster{ |
| 120 | Server: server, |
| 121 | } |
| 122 | config.AuthInfos["clean"] = &clientcmdapi.AuthInfo{ |
| 123 | Token: token, |
| 124 | } |
| 125 | config.Contexts["clean"] = &clientcmdapi.Context{ |
| 126 | Cluster: "clean", |
| 127 | AuthInfo: "clean", |
| 128 | } |
| 129 | config.CurrentContext = "clean" |
| 130 | |
| 131 | return config |
| 132 | } |
| 133 | |
| 134 | func createCAValidTestConfig() *clientcmdapi.Config { |
| 135 |
no outgoing calls
no test coverage detected