diff options
author | Valery Piashchynski <[email protected]> | 2021-01-22 11:04:09 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-22 11:04:09 +0300 |
commit | 29d6020a9e8a3713b22269ed946547c96c24d3da (patch) | |
tree | afe4d330ecb4180e1a9970c8e250bf4f8d92c15e /tests/plugins/http/http_plugin_test.go | |
parent | 6807441b2bf1e821e335d67567af47567c9757f3 (diff) | |
parent | 4d60db85d1c0bfeddffe1de3e28d3464949c5f6d (diff) |
Merge pull request #494 from spiral/feature/allow_https_listen_on_unix_socketsv2.0.0-beta11
feat(https): 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)) } |