summaryrefslogtreecommitdiff
path: root/plugins/http
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-26 14:04:27 +0300
committerValery Piashchynski <[email protected]>2020-11-26 14:04:27 +0300
commit8b24468430460ef01bc351c81b1b53673bf5db36 (patch)
tree6944ef87d16bb6184dfe7f7d18a1e6de783744da /plugins/http
parent72a10aa983e79d42db14416d70ff8dc5e74b472e (diff)
Rotate ports for the http plugin init test
Diffstat (limited to 'plugins/http')
-rw-r--r--plugins/http/tests/configs/.rr-broken-pipes.yaml2
-rw-r--r--plugins/http/tests/configs/.rr-init.yaml41
-rw-r--r--plugins/http/tests/http_test.go2
3 files changed, 43 insertions, 2 deletions
diff --git a/plugins/http/tests/configs/.rr-broken-pipes.yaml b/plugins/http/tests/configs/.rr-broken-pipes.yaml
index 5738712a..aacc303e 100644
--- a/plugins/http/tests/configs/.rr-broken-pipes.yaml
+++ b/plugins/http/tests/configs/.rr-broken-pipes.yaml
@@ -13,7 +13,7 @@ server:
http:
debug: true
- address: 127.0.0.1:8084
+ address: 127.0.0.1:12384
maxRequestSize: 1024
middleware: [ "" ]
uploads:
diff --git a/plugins/http/tests/configs/.rr-init.yaml b/plugins/http/tests/configs/.rr-init.yaml
new file mode 100644
index 00000000..50aa91ec
--- /dev/null
+++ b/plugins/http/tests/configs/.rr-init.yaml
@@ -0,0 +1,41 @@
+rpc:
+ listen: tcp://127.0.0.1:6001
+ disabled: false
+
+server:
+ command: "php ../../../tests/http/client.php echo pipes"
+ user: ""
+ group: ""
+ env:
+ "RR_HTTP": "true"
+ relay: "pipes"
+ relayTimeout: "20s"
+
+http:
+ debug: true
+ address: 127.0.0.1:15395
+ maxRequestSize: 1024
+ middleware: [ "" ]
+ uploads:
+ forbid: [ ".php", ".exe", ".bat" ]
+ trustedSubnets: [ "10.0.0.0/8", "127.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "::1/128", "fc00::/7", "fe80::/10" ]
+ pool:
+ numWorkers: 2
+ maxJobs: 0
+ allocateTimeout: 60s
+ destroyTimeout: 60s
+
+ ssl:
+ port: 8892
+ redirect: false
+ cert: fixtures/server.crt
+ key: fixtures/server.key
+ # rootCa: root.crt
+ fcgi:
+ address: tcp://0.0.0.0:7921
+ http2:
+ enabled: false
+ h2c: false
+ maxConcurrentStreams: 128
+
+
diff --git a/plugins/http/tests/http_test.go b/plugins/http/tests/http_test.go
index 16164667..103e7b3f 100644
--- a/plugins/http/tests/http_test.go
+++ b/plugins/http/tests/http_test.go
@@ -45,7 +45,7 @@ func TestHTTPInit(t *testing.T) {
assert.NoError(t, err)
cfg := &config.Viper{
- Path: "configs/.rr-http.yaml",
+ Path: "configs/.rr-init.yaml",
Prefix: "rr",
}