g3/scripts/coverage/g3proxy/0009_anonymous_user/testcases.sh
2024-11-19 15:18:21 +08:00

47 lines
1,018 B
Bash

#!/bin/sh
for user in "t1:toor" "t2:toor"
do
HTTP_PROXY="http://${user}@127.0.0.1:8080"
test_http_proxy_http_forward
test_http_proxy_ftp_over_http
test_http_proxy_https_connect
test_http_proxy_https_forward
HTTPS_PROXY="https://${user}@g3proxy.local:8443"
test_https_proxy_http_forward
test_https_proxy_ftp_over_http
test_https_proxy_https_connect
test_https_proxy_https_forward
SOCKS5_PROXY="socks5h://${user}@127.0.0.1:1080"
test_socks5_proxy_http
test_socks5_proxy_https
test_socks5_proxy_dns
done
HTTP_PROXY="http://127.0.0.1:8080"
test_http_proxy_http_forward
test_http_proxy_ftp_over_http
test_http_proxy_https_connect
test_http_proxy_https_forward
HTTPS_PROXY="https://g3proxy.local:8443"
test_https_proxy_http_forward
test_https_proxy_ftp_over_http
test_https_proxy_https_connect
test_https_proxy_https_forward
SOCKS5_PROXY="socks5h://127.0.0.1:1080"
test_socks5_proxy_http
test_socks5_proxy_https
test_socks5_proxy_dns
SOCKS4_PROXY="socks4a://127.0.0.1:1080"
test_socks4_proxy_http