From 09f9a0d001f1249af24373d9f207d485e4a9abb2 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 26 Nov 2020 13:33:54 +0300 Subject: Update ports in the configs --- plugins/http/tests/configs/.rr-broken-pipes.yaml | 2 +- plugins/http/tests/configs/.rr-echoErr.yaml | 2 +- plugins/http/tests/configs/.rr-env.yaml | 2 +- plugins/http/tests/configs/.rr-http.yaml | 2 +- plugins/http/tests/configs/.rr-resetter.yaml | 4 ++-- plugins/http/tests/http_test.go | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins') 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) { -- cgit v1.2.3