diff options
author | Valery Piashchynski <[email protected]> | 2021-01-21 20:15:10 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-01-21 20:15:10 +0300 |
commit | 4d60db85d1c0bfeddffe1de3e28d3464949c5f6d (patch) | |
tree | af1598be614ea234f063815e0f6e7ef84c66812e /tests/plugins/http/http_plugin_test.go | |
parent | 788e7b8d01874208504a8b56159b4de378d4a0bc (diff) |
Allow https to listen on unix sockets
Diffstat (limited to 'tests/plugins/http/http_plugin_test.go')
-rw-r--r-- | tests/plugins/http/http_plugin_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/plugins/http/http_plugin_test.go b/tests/plugins/http/http_plugin_test.go index 23628c72..72ae05a0 100644 --- a/tests/plugins/http/http_plugin_test.go +++ b/tests/plugins/http/http_plugin_test.go @@ -46,7 +46,7 @@ func TestHTTPInit(t *testing.T) { cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel)) assert.NoError(t, err) - rIn := makeConfig("6001", "15395", "7921", "8892", "false", "false", "php ../../http/client.php echo pipes") + rIn := makeConfig("6001", "15395", "7921", ":8892", "false", "false", "php ../../http/client.php echo pipes") cfg := &config.Viper{ ReadInCfg: rIn, Type: "yaml", @@ -1264,7 +1264,7 @@ func getHeader(url string, h map[string]string) (string, *http.Response, error) return string(b), r, err } -func makeConfig(rpcPort, httpPort, fcgiPort, sslPort, redirect, http2Enabled, command string) []byte { +func makeConfig(rpcPort, httpPort, fcgiPort, sslAddress, redirect, http2Enabled, command string) []byte { return []byte(fmt.Sprintf(` rpc: listen: tcp://127.0.0.1:%s @@ -1293,7 +1293,7 @@ http: destroyTimeout: 60s ssl: - port: %s + address: %s redirect: %s cert: fixtures/server.crt key: fixtures/server.key @@ -1307,5 +1307,5 @@ http: logs: mode: development level: error -`, rpcPort, command, httpPort, sslPort, redirect, fcgiPort, http2Enabled)) +`, rpcPort, command, httpPort, sslAddress, redirect, fcgiPort, http2Enabled)) } |