Skip to content

Commit 4f7ec1b

Browse files
committed
vey-bench: add h3 CI testcases
1 parent 20a5be8 commit 4f7ec1b

3 files changed

Lines changed: 30 additions & 6 deletions

File tree

scripts/coverage/vey-bench/nginx.conf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ http {
1414
listen 2080;
1515
listen [::]:2080;
1616

17-
listen 2443 ssl http2;
18-
listen [::]:2443 ssl http2;
17+
listen 2443 ssl;
18+
listen [::]:2443 ssl;
19+
20+
listen 2443 quic reuseport;
21+
listen [::]:2443 quic reuseport;
1922

2023
# requires nginx 1.25.1
21-
# http2 on;
24+
http2 on;
2225

2326
ssl_certificate httpbin.local.pem;
2427
ssl_certificate_key httpbin.local-key.pem;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
# GET
3+
4+
URL=https://httpbin.local:2443/get
5+
6+
vey_bench h3 "${URL}" --ok-status 200 --tls-ca-cert "${TEST_CA_CERT_FILE}"
7+
8+
vey_bench h3 "${URL}" -H "Accept: application/json" --ok-status 200 --tls-ca-cert "${TEST_CA_CERT_FILE}"
9+
10+
vey_bench h3 "${URL}" -x socks5h://t1:toor@vey-proxy.local:1080 --ok-status 200 --tls-ca-cert "${TEST_CA_CERT_FILE}"
11+
12+
# POST
13+
14+
URL=https://httpbin.local:2443/post
15+
16+
vey_bench h3 "${URL}" --method POST --payload 31323334 --ok-status 200 --tls-ca-cert "${TEST_CA_CERT_FILE}"
17+
vey_bench h3 "${URL}" --method POST --payload 31323334 --binary --ok-status 200 --tls-ca-cert "${TEST_CA_CERT_FILE}"
18+
vey_bench h3 "${URL}" --method POST --payload name=foo -H "Content-Type: application/x-www-form-urlencoded" --ok-status 200 --tls-ca-cert "${TEST_CA_CERT_FILE}"

scripts/coverage/vey-proxy/nginx.conf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ http {
1414
listen 2080;
1515
listen [::]:2080;
1616

17-
listen 2443 ssl http2;
18-
listen [::]:2443 ssl http2;
17+
listen 2443 ssl;
18+
listen [::]:2443 ssl;
19+
20+
listen 2443 quic reuseport;
21+
listen [::]:2443 quic reuseport;
1922

2023
# requires nginx 1.25.1
21-
# http2 on;
24+
http2 on;
2225

2326
ssl_certificate httpbin.local.pem;
2427
ssl_certificate_key httpbin.local-key.pem;

0 commit comments

Comments
 (0)