diff options
author | Valery Piashchynski <[email protected]> | 2021-01-21 16:08:06 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-01-21 16:08:06 +0300 |
commit | 8029e2d1107e4663f1104ebf25c40f252c8ea111 (patch) | |
tree | 7c9a6744fa9ce130d80c634da3d7596f70fda51a /tests | |
parent | 7da6c78449776e1f3c6716250bca0b712a0423a4 (diff) |
Fix headers configs
Update rr.yaml
Remove previous stderr messages when they were sent
Diffstat (limited to 'tests')
-rw-r--r-- | tests/plugins/headers/configs/.rr-cors-headers.yaml | 16 | ||||
-rw-r--r-- | tests/plugins/headers/configs/.rr-headers-init.yaml | 16 | ||||
-rw-r--r-- | tests/plugins/headers/configs/.rr-req-headers.yaml | 4 | ||||
-rw-r--r-- | tests/plugins/headers/configs/.rr-res-headers.yaml | 4 | ||||
-rw-r--r-- | tests/psr-worker-bench.php | 1 |
5 files changed, 20 insertions, 21 deletions
diff --git a/tests/plugins/headers/configs/.rr-cors-headers.yaml b/tests/plugins/headers/configs/.rr-cors-headers.yaml index c5ff576d..9d2ef7e5 100644 --- a/tests/plugins/headers/configs/.rr-cors-headers.yaml +++ b/tests/plugins/headers/configs/.rr-cors-headers.yaml @@ -17,16 +17,16 @@ http: # Additional HTTP headers and CORS control. headers: cors: - allowedOrigin: "*" - allowedHeaders: "*" - allowedMethods: "GET,POST,PUT,DELETE" - allowCredentials: true - exposedHeaders: "Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma" - maxAge: 600 + allowed_origin: "*" + allowed_headers: "*" + allowed_methods: "GET,POST,PUT,DELETE" + allow_credentials: true + exposed_headers: "Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma" + max_age: 600 request: - "input": "custom-header" + input: "custom-header" response: - "output": "output-header" + output: "output-header" pool: num_workers: 2 max_jobs: 0 diff --git a/tests/plugins/headers/configs/.rr-headers-init.yaml b/tests/plugins/headers/configs/.rr-headers-init.yaml index 059df9ac..b2781f2b 100644 --- a/tests/plugins/headers/configs/.rr-headers-init.yaml +++ b/tests/plugins/headers/configs/.rr-headers-init.yaml @@ -17,16 +17,16 @@ http: # Additional HTTP headers and CORS control. headers: cors: - allowedOrigin: "*" - allowedHeaders: "*" - allowedMethods: "GET,POST,PUT,DELETE" - allowCredentials: true - exposedHeaders: "Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma" - maxAge: 600 + allowed_origin: "*" + allowed_headers: "*" + allowed_methods: "GET,POST,PUT,DELETE" + allow_credentials: true + exposed_headers: "Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma" + max_age: 600 request: - "Example-Request-Header": "Value" + Example-Request-Header: "Value" response: - "X-Powered-By": "RoadRunner" + X-Powered-By: "RoadRunner" pool: num_workers: 2 max_jobs: 0 diff --git a/tests/plugins/headers/configs/.rr-req-headers.yaml b/tests/plugins/headers/configs/.rr-req-headers.yaml index f0a52e17..a2b97171 100644 --- a/tests/plugins/headers/configs/.rr-req-headers.yaml +++ b/tests/plugins/headers/configs/.rr-req-headers.yaml @@ -17,9 +17,9 @@ http: # Additional HTTP headers and CORS control. headers: request: - "input": "custom-header" + input: "custom-header" response: - "output": "output-header" + output: "output-header" pool: num_workers: 2 max_jobs: 0 diff --git a/tests/plugins/headers/configs/.rr-res-headers.yaml b/tests/plugins/headers/configs/.rr-res-headers.yaml index 868b9746..4448343c 100644 --- a/tests/plugins/headers/configs/.rr-res-headers.yaml +++ b/tests/plugins/headers/configs/.rr-res-headers.yaml @@ -17,9 +17,9 @@ http: # Additional HTTP headers and CORS control. headers: request: - "input": "custom-header" + input: "custom-header" response: - "output": "output-header" + output: "output-header" pool: num_workers: 2 max_jobs: 0 diff --git a/tests/psr-worker-bench.php b/tests/psr-worker-bench.php index 3f6408bf..d382098a 100644 --- a/tests/psr-worker-bench.php +++ b/tests/psr-worker-bench.php @@ -17,7 +17,6 @@ while ($req = $worker->waitRequest()) { try { $rsp = new \Nyholm\Psr7\Response(); $rsp->getBody()->write("hello world"); - error_log("hello"); $worker->respond($rsp); } catch (\Throwable $e) { $worker->getWorker()->error((string)$e); |