(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func createClientServerConfig(t *testing.T) (config.HTTPClientConfiguration, config.HTTPServerConfiguration) { |
| 75 | clientConfig := config.HTTPClientConfiguration{} |
| 76 | serverConfig := config.HTTPServerConfiguration{} |
| 77 | structutils.Defaults(&clientConfig) |
| 78 | structutils.Defaults(&serverConfig) |
| 79 | port := test.GetNextPort(t, "config server") |
| 80 | clientConfig.URL = fmt.Sprintf("http://127.0.0.1:%d/", port) |
| 81 | serverConfig.Listen = fmt.Sprintf("127.0.0.1:%d", port) |
| 82 | return clientConfig, serverConfig |
| 83 | } |
| 84 | |
| 85 | func TestUnencryptedFailure(t *testing.T) { |
| 86 | clientConfig, serverConfig := createClientServerConfig(t) |
no test coverage detected