diff options
author | Valery Piashchynski <[email protected]> | 2020-11-25 21:56:26 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-25 21:56:26 +0300 |
commit | 1b0b033bcf4969e401b0c34b82171aa0b60b12cf (patch) | |
tree | 9cfe13b67613e69140bf29d320a1754cf2f7c9b7 /plugins/http/tests/configs | |
parent | 2918cfca6d9579125257bfc9f5655537a63ec82a (diff) |
Add mock logger, test for errors in log
Diffstat (limited to 'plugins/http/tests/configs')
-rw-r--r-- | plugins/http/tests/configs/.rr-echoErr.yaml | 28 | ||||
-rw-r--r-- | plugins/http/tests/configs/.rr-http.yaml | 2 |
2 files changed, 29 insertions, 1 deletions
diff --git a/plugins/http/tests/configs/.rr-echoErr.yaml b/plugins/http/tests/configs/.rr-echoErr.yaml new file mode 100644 index 00000000..5a97723d --- /dev/null +++ b/plugins/http/tests/configs/.rr-echoErr.yaml @@ -0,0 +1,28 @@ +rpc: + listen: tcp://127.0.0.1:6001 + disabled: false + +server: + command: "php ../../../tests/http/client.php echoerr pipes" + user: "" + group: "" + env: + "RR_HTTP": "true" + relay: "pipes" + relayTimeout: "20s" + +http: + debug: true + address: 127.0.0.1:8080 + maxRequestSize: 1024 + middleware: [ "" ] + uploads: + 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 + 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 c989df24..efb3d4fb 100644 --- a/plugins/http/tests/configs/.rr-http.yaml +++ b/plugins/http/tests/configs/.rr-http.yaml @@ -3,7 +3,7 @@ rpc: disabled: false server: - command: "php psr-worker.php" + command: "php ../../../tests/http/client.php echo pipes" user: "" group: "" env: |