summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-26 13:33:54 +0300
committerValery Piashchynski <[email protected]>2020-11-26 13:33:54 +0300
commit09f9a0d001f1249af24373d9f207d485e4a9abb2 (patch)
tree4b0cd1bbdc3480f34a08fbbfdb9ea268dacd7193
parentc765c70c1ff628044ccae15a24d0e200bb9304cb (diff)
Update ports in the configs
-rw-r--r--plugins/http/tests/configs/.rr-broken-pipes.yaml2
-rw-r--r--plugins/http/tests/configs/.rr-echoErr.yaml2
-rw-r--r--plugins/http/tests/configs/.rr-env.yaml2
-rw-r--r--plugins/http/tests/configs/.rr-http.yaml2
-rw-r--r--plugins/http/tests/configs/.rr-resetter.yaml4
-rw-r--r--plugins/http/tests/http_test.go4
6 files changed, 8 insertions, 8 deletions
diff --git a/plugins/http/tests/configs/.rr-broken-pipes.yaml b/plugins/http/tests/configs/.rr-broken-pipes.yaml
index 9f599310..5738712a 100644
--- a/plugins/http/tests/configs/.rr-broken-pipes.yaml
+++ b/plugins/http/tests/configs/.rr-broken-pipes.yaml
@@ -20,7 +20,7 @@ http:
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: 12
+ numWorkers: 2
maxJobs: 0
allocateTimeout: 60s
destroyTimeout: 60s
diff --git a/plugins/http/tests/configs/.rr-echoErr.yaml b/plugins/http/tests/configs/.rr-echoErr.yaml
index 5a97723d..696fc0ae 100644
--- a/plugins/http/tests/configs/.rr-echoErr.yaml
+++ b/plugins/http/tests/configs/.rr-echoErr.yaml
@@ -20,7 +20,7 @@ http:
forbid: [ "" ]
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: 1
+ numWorkers: 2
maxJobs: 0
allocateTimeout: 60s
destroyTimeout: 60s
diff --git a/plugins/http/tests/configs/.rr-env.yaml b/plugins/http/tests/configs/.rr-env.yaml
index 1e8b679f..ed7def18 100644
--- a/plugins/http/tests/configs/.rr-env.yaml
+++ b/plugins/http/tests/configs/.rr-env.yaml
@@ -23,7 +23,7 @@ http:
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: 12
+ numWorkers: 2
maxJobs: 0
allocateTimeout: 60s
destroyTimeout: 60s
diff --git a/plugins/http/tests/configs/.rr-http.yaml b/plugins/http/tests/configs/.rr-http.yaml
index efb3d4fb..c7d6a999 100644
--- a/plugins/http/tests/configs/.rr-http.yaml
+++ b/plugins/http/tests/configs/.rr-http.yaml
@@ -20,7 +20,7 @@ http:
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: 12
+ numWorkers: 2
maxJobs: 0
allocateTimeout: 60s
destroyTimeout: 60s
diff --git a/plugins/http/tests/configs/.rr-resetter.yaml b/plugins/http/tests/configs/.rr-resetter.yaml
index a08bb83f..b46b21f5 100644
--- a/plugins/http/tests/configs/.rr-resetter.yaml
+++ b/plugins/http/tests/configs/.rr-resetter.yaml
@@ -13,14 +13,14 @@ server:
http:
debug: true
- address: 127.0.0.1:8084
+ address: 127.0.0.1:10084
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: 4
+ numWorkers: 2
maxJobs: 0
allocateTimeout: 60s
destroyTimeout: 60s
diff --git a/plugins/http/tests/http_test.go b/plugins/http/tests/http_test.go
index 28461950..5f78a3d6 100644
--- a/plugins/http/tests/http_test.go
+++ b/plugins/http/tests/http_test.go
@@ -173,7 +173,7 @@ func TestHTTPInformerReset(t *testing.T) {
}
func echoHTTP(t *testing.T) {
- req, err := http.NewRequest("GET", "http://localhost:8084?hello=world", nil)
+ req, err := http.NewRequest("GET", "http://localhost:10084?hello=world", nil)
assert.NoError(t, err)
r, err := http.DefaultClient.Do(req)
@@ -219,7 +219,7 @@ func informerTest(t *testing.T) {
err = client.Call("informer.Workers", "http", &list)
assert.NoError(t, err)
- assert.Len(t, list.Workers, 4)
+ assert.Len(t, list.Workers, 2)
}
func TestSSL(t *testing.T) {