summaryrefslogtreecommitdiff
path: root/tests/plugins/http/configs
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-28 16:43:59 +0300
committerValery Piashchynski <[email protected]>2021-04-28 16:43:59 +0300
commitb789df7dcc9268f98f2bacfb40f753b10d521e4f (patch)
tree126b0fd8271f27e77f9107906bb0e6713a49d6ab /tests/plugins/http/configs
parent30c25f17fa7d6386e33a4894c812f7ca5db990ad (diff)
- Update CHANGELOG
- Add tests for the etags functionality Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/http/configs')
-rw-r--r--tests/plugins/http/configs/.rr-http-static-etags.yaml35
-rw-r--r--tests/plugins/http/configs/.rr-http-static.yaml6
2 files changed, 39 insertions, 2 deletions
diff --git a/tests/plugins/http/configs/.rr-http-static-etags.yaml b/tests/plugins/http/configs/.rr-http-static-etags.yaml
new file mode 100644
index 00000000..e18c50dd
--- /dev/null
+++ b/tests/plugins/http/configs/.rr-http-static-etags.yaml
@@ -0,0 +1,35 @@
+server:
+ command: "php ../../http/client.php pid pipes"
+ user: ""
+ group: ""
+ env:
+ "RR_HTTP": "true"
+ relay: "pipes"
+ relay_timeout: "20s"
+
+http:
+ address: 127.0.0.1:21603
+ max_request_size: 1024
+ middleware: [ "gzip" ]
+ trusted_subnets: [ "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" ]
+ uploads:
+ forbid: [ ".php", ".exe", ".bat" ]
+ static:
+ dir: "../../../"
+ pattern: "/tests/"
+ forbid: [ "" ]
+ allow: [ ".txt", ".php" ]
+ calculate_etag: true
+ weak: true
+ request:
+ "input": "custom-header"
+ response:
+ "output": "output-header"
+ pool:
+ num_workers: 2
+ max_jobs: 0
+ allocate_timeout: 60s
+ destroy_timeout: 60s
+logs:
+ mode: development
+ level: error
diff --git a/tests/plugins/http/configs/.rr-http-static.yaml b/tests/plugins/http/configs/.rr-http-static.yaml
index 9351f020..bbec13f9 100644
--- a/tests/plugins/http/configs/.rr-http-static.yaml
+++ b/tests/plugins/http/configs/.rr-http-static.yaml
@@ -1,5 +1,5 @@
server:
- command: "php ../../psr-worker-bench.php"
+ command: "php ../../http/client.php pid pipes"
user: ""
group: ""
env:
@@ -19,12 +19,14 @@ http:
pattern: "/tests/"
forbid: [ "" ]
allow: [ ".txt", ".php" ]
+ calculate_etag: true
+ weak: false
request:
"input": "custom-header"
response:
"output": "output-header"
pool:
- num_workers: 12
+ num_workers: 2
max_jobs: 0
allocate_timeout: 60s
destroy_timeout: 60s