(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestUnencrypted(t *testing.T) { |
| 60 | clientConfig, serverConfig := createClientServerConfig(t) |
| 61 | |
| 62 | message := "Hi" |
| 63 | |
| 64 | response, responseStatus, err := runRequest(clientConfig, serverConfig, t, message) |
| 65 | if err != nil { |
| 66 | assert.Fail(t, "failed to run request", err) |
| 67 | return |
| 68 | } |
| 69 | assert.Equal(t, 200, responseStatus) |
| 70 | assert.Equal(t, false, response.Error) |
| 71 | assert.Equal(t, "Hello world!", response.Message) |
| 72 | } |
| 73 | |
| 74 | func createClientServerConfig(t *testing.T) (config.HTTPClientConfiguration, config.HTTPServerConfiguration) { |
| 75 | clientConfig := config.HTTPClientConfiguration{} |
nothing calls this directly
no test coverage detected