Skip to content

Commit e5bf0c8

Browse files
committed
test vey-proxy udp_stream in vey-bench CI test
1 parent 1ddc427 commit e5bf0c8

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11

2+
for port in 2443 8443
3+
do
4+
25
# GET
36

4-
URL=https://httpbin.local:2443/get
7+
URL=https://httpbin.local:${port}/get
58

69
vey_bench h3 "${URL}" --ok-status 200 --tls-ca-cert "${TEST_CA_CERT_FILE}"
710

@@ -11,8 +14,10 @@ vey_bench h3 "${URL}" -x socks5h://t1:toor@vey-proxy.local:1080 --ok-status 200
1114

1215
# POST
1316

14-
URL=https://httpbin.local:2443/post
17+
URL=https://httpbin.local:${port}/post
1518

1619
vey_bench h3 "${URL}" --method POST --payload 31323334 --ok-status 200 --tls-ca-cert "${TEST_CA_CERT_FILE}"
1720
vey_bench h3 "${URL}" --method POST --payload 31323334 --binary --ok-status 200 --tls-ca-cert "${TEST_CA_CERT_FILE}"
1821
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}"
22+
23+
done

scripts/coverage/vey-bench/vey-proxy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,8 @@ server:
6464
listen: 127.0.0.1:1080
6565
escaper: default
6666
user-group: default
67+
- name: quic
68+
type: udp_stream
69+
listen: 127.0.0.1:8443
70+
escaper: default
71+
upstream: 127.0.0.1:2443

scripts/coverage/vey-proxy/0003_base_udp_stream/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ escaper:
1919
allow: 127.0.0.0/8
2020

2121
server:
22-
- name: udp
22+
- name: quic
2323
type: udp_stream
2424
listen: 127.0.0.1:8443
2525
escaper: default

vey-proxy/ci/python3+curl/test_httpbin_h3.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ def test_put_file_delay(self):
126126

127127

128128
if __name__ == '__main__':
129+
if not hasattr(pycurl, "VERSION_HTTP3"):
130+
print("the installed pycurl has no support for http3")
131+
sys.exit(0)
132+
129133
parser = argparse.ArgumentParser()
130134
parser.add_argument('--proxy', '-x', nargs='?', help='Proxy URL')
131135
parser.add_argument('--site', '-T', nargs='?', help='Target Site', default=target_site)

0 commit comments

Comments
 (0)