Commit graph

67 commits

Author SHA1 Message Date
Zhang Jingqiang
e539edb17b spend less time in g3proxy coverage CI 2026-02-06 23:00:22 +08:00
Zhang Jingqiang
25dd06bd08 g3proxy: add ldaps testcase 2026-02-06 23:00:22 +08:00
Zhang Jingqiang
d49fbed7f2 g3proxy: fix ldap testcase
Some checks failed
StaticLinking / msvc-vcpkg (push) Has been cancelled
StaticLinking / msvc-vendored (push) Has been cancelled
StaticLinking / msvc-vendored-1 (push) Has been cancelled
StaticLinking / msvc-vendored-2 (push) Has been cancelled
StaticLinking / msvc-vendored-3 (push) Has been cancelled
Windows-CI / Build (push) Has been cancelled
Windows-CI / Build vendored (push) Has been cancelled
Windows-CI / Build vendored-1 (push) Has been cancelled
Windows-CI / Build vendored-2 (push) Has been cancelled
Windows-CI / Build vendored-3 (push) Has been cancelled
Windows-CI / Build vendored-4 (push) Has been cancelled
Windows-CI / Build vendored-5 (push) Has been cancelled
Windows-CI / Build vendored-6 (push) Has been cancelled
Windows-CI / Build vendored-7 (push) Has been cancelled
Windows-CI / Build vendored-8 (push) Has been cancelled
Windows-CI / Build vendored-20 (push) Has been cancelled
Windows-CI / Build vendored-21 (push) Has been cancelled
Windows-CI / Build vendored-22 (push) Has been cancelled
Windows-CI / Build vendored-23 (push) Has been cancelled
Windows-CI / Build vendored-9 (push) Has been cancelled
Windows-CI / Build vendored-10 (push) Has been cancelled
Windows-CI / Build vendored-11 (push) Has been cancelled
Windows-CI / Build vendored-12 (push) Has been cancelled
Windows-CI / Build vendored-13 (push) Has been cancelled
Windows-CI / Build vendored-14 (push) Has been cancelled
Windows-CI / Build vendored-15 (push) Has been cancelled
Windows-CI / Build vendored-16 (push) Has been cancelled
Windows-CI / Build vendored-17 (push) Has been cancelled
Windows-CI / Build vendored-18 (push) Has been cancelled
Windows-CI / Build vendored-19 (push) Has been cancelled
2026-02-02 22:56:08 +08:00
Zhang Jingqiang
131a7160d5 g3proxy: add ldap testcase 2026-02-02 22:56:08 +08:00
Zhang Jingqiang
5074c445fa g3proxy: add testcase for tcp/tls stream server facts auth
Some checks failed
Windows-CI / Build vendored-4 (push) Waiting to run
Windows-CI / Build vendored-5 (push) Waiting to run
Windows-CI / Build vendored-6 (push) Waiting to run
Windows-CI / Build vendored-7 (push) Waiting to run
Windows-CI / Build vendored-8 (push) Waiting to run
Windows-CI / Build vendored-9 (push) Waiting to run
Windows-CI / Build vendored-10 (push) Waiting to run
Windows-CI / Build vendored-11 (push) Waiting to run
Windows-CI / Build vendored-12 (push) Waiting to run
Windows-CI / Build vendored-13 (push) Waiting to run
Windows-CI / Build vendored-14 (push) Waiting to run
Windows-CI / Build vendored-15 (push) Waiting to run
Windows-CI / Build vendored-16 (push) Waiting to run
Windows-CI / Build vendored-17 (push) Waiting to run
Windows-CI / Build vendored-18 (push) Waiting to run
Windows-CI / Build vendored-19 (push) Waiting to run
Windows-CI / Build vendored-20 (push) Waiting to run
Windows-CI / Build vendored-21 (push) Waiting to run
Windows-CI / Build vendored-22 (push) Waiting to run
Windows-CI / Build vendored-23 (push) Waiting to run
CodeCoverage / lib unit test (push) Has been cancelled
CodeCoverage / g3mkcert test (push) Has been cancelled
CodeCoverage / g3keymess test (push) Has been cancelled
CodeCoverage / g3proxy test (push) Has been cancelled
CodeCoverage / g3bench test (push) Has been cancelled
CodeCoverage / g3statsd test (push) Has been cancelled
Sphinx-Doc / build (g3keymess) (push) Has been cancelled
Sphinx-Doc / build (g3proxy) (push) Has been cancelled
Sphinx-Doc / build (g3statsd) (push) Has been cancelled
Sphinx-Doc / build (g3tiles) (push) Has been cancelled
2026-01-18 08:31:42 +08:00
Zhang Jingqiang
737d30e079 g3proxy: add testcase for sni_proxy facts auth 2026-01-07 07:06:32 +08:00
Zhang Jingqiang
ff428ba1a8 g3proxy: support more types of user group 2026-01-03 11:43:42 +08:00
Zhang Jingqiang
dfc6852395 g3proxy: allow to resolve consistently when using username params
Some checks failed
StaticLinking / msvc-vendored-3 (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
Windows-CI / Build vendored-1 (push) Waiting to run
Windows-CI / Build vendored-2 (push) Waiting to run
Windows-CI / Build vendored-3 (push) Waiting to run
Windows-CI / Build vendored-4 (push) Waiting to run
Windows-CI / Build vendored-5 (push) Waiting to run
Windows-CI / Build vendored-6 (push) Waiting to run
Windows-CI / Build vendored-7 (push) Waiting to run
Windows-CI / Build vendored-8 (push) Waiting to run
Windows-CI / Build vendored-9 (push) Waiting to run
Windows-CI / Build vendored-10 (push) Waiting to run
Windows-CI / Build vendored-11 (push) Waiting to run
Windows-CI / Build vendored-12 (push) Waiting to run
Windows-CI / Build vendored-13 (push) Waiting to run
Windows-CI / Build vendored-14 (push) Waiting to run
Windows-CI / Build vendored-15 (push) Waiting to run
Windows-CI / Build vendored-16 (push) Waiting to run
Windows-CI / Build vendored-17 (push) Waiting to run
Windows-CI / Build vendored-18 (push) Waiting to run
Windows-CI / Build vendored-19 (push) Waiting to run
Windows-CI / Build vendored-20 (push) Waiting to run
Windows-CI / Build vendored-21 (push) Waiting to run
Windows-CI / Build vendored-22 (push) Waiting to run
Windows-CI / Build vendored-23 (push) Waiting to run
Sphinx-Doc / build (g3keymess) (push) Has been cancelled
Sphinx-Doc / build (g3proxy) (push) Has been cancelled
Sphinx-Doc / build (g3statsd) (push) Has been cancelled
Sphinx-Doc / build (g3tiles) (push) Has been cancelled
2025-10-15 18:56:58 +08:00
onin
924fb2b368 nuked refs to global_label in coverage tests 2025-09-09 11:42:18 +08:00
onin
6052d5c2f0 tests(g3proxy): add unit + coverage scenario for username-params escaper mapping
- Add unit tests for username-params config parsing
    - g3proxy/src/config/server/username_params_to_escaper.rs
    - Covers aliases (keys/floating/suffix/socks_port/auth_strip_suffix), validation, and suffix
normalization.
- Add unit tests for server configs
    - g3proxy/src/config/server/http_proxy.rs
    - g3proxy/src/config/server/socks_proxy.rs
    - Verifies parsing of username_params_to_escaper_addr and key propagation.
- Add unit test for task-note override helpers
    - g3proxy/src/serve/task.rs
    - Exercises set_override_next_proxy and override_next_proxy().
- Add integration-style coverage scenario to exercise HTTP pipeline writer and SOCKS negotiation
branches
    - scripts/coverage/g3proxy/0024_username_params_escaper/{g3proxy.yaml,testcases.sh}
    - Uses .localhost suffix to resolve locally and port 9 to avoid external services.
    - Hits both success and error branches (invalid hierarchy).

Motivation: Improve Codecov patch coverage for newly added username-params mapping code paths
without changing runtime behavior.
2025-09-09 11:42:18 +08:00
Zhang Jingqiang
c8975d5e6b add testcase for masque/http and HTTP proxytunnel 2025-07-09 18:55:04 +08:00
Zhang Jingqiang
01ff5f681e g3proxy: enable curl chunked request in CI 2025-06-25 13:41:01 +08:00
Zhang Jingqiang
53028622d3 g3statsd: allow to listen to unix statsd socket 2025-06-02 15:43:55 +08:00
Zhang Jingqiang
f89893f7ef g3-icap-client: allow to disable preview
Some checks failed
CodeCoverage / lib unit test (push) Waiting to run
CodeCoverage / g3proxy test (push) Waiting to run
CodeCoverage / g3bench test (push) Waiting to run
CodeCoverage / g3statsd test (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
Sphinx-Doc / build (g3tiles) (push) Has been cancelled
Sphinx-Doc / build (g3keymess) (push) Has been cancelled
Sphinx-Doc / build (g3proxy) (push) Has been cancelled
Sphinx-Doc / build (g3statsd) (push) Has been cancelled
2025-05-21 15:03:29 +08:00
Zhang Jingqiang
5a3fbedabf update coverage CI 2025-05-13 11:04:21 +08:00
Zhang Jingqiang
c3d12eb524 g3statsd: enable worker in CI
Some checks are pending
CodeCoverage / lib unit test (push) Waiting to run
CodeCoverage / g3proxy test (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
CodeCoverage / g3bench test (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
2025-05-13 00:05:22 +08:00
Zhang Jingqiang
4922697dfe g3proxy: add ci for failover resolver 2025-05-10 21:51:55 +08:00
Zhang Jingqiang
fd411b1d7c g3statsd: support add prefix in exporters 2025-05-09 15:55:18 +08:00
Zhang Jingqiang
8fd99c4909 update coverage README 2025-05-09 10:17:05 +08:00
Zhang Jingqiang
e9ecff626c enable graphite as statsd backend in CI 2025-05-09 06:57:50 +08:00
Zhang Jingqiang
6ed5a56295 g3statsd: split influxdb to influxdb_v2 and influxdb_v3 2025-05-08 20:18:43 +08:00
Zhang Jingqiang
a50c692d00 add g3statsd+influxdb to g3proxy CI 2025-05-08 20:18:43 +08:00
Zhang Jingqiang
609c194bd9 add testcase for easy-proxy 2025-04-18 12:54:52 +08:00
Zhang Jingqiang
c6d11205ce g3proxy: add proxy_protocol support in direct_fixed escaper 2025-02-28 12:09:57 +08:00
Zhang Jingqiang
d45f116808 coverage: update SSL CA cert file env var name 2025-02-22 19:22:25 +08:00
Zhang Jingqiang
c87026c1b4 support multi-threaded runtime in worker 2025-02-10 18:10:08 +08:00
Zhang Jingqiang
8fb080937f g3-resolver: support use default server in resolv.conf for c-ares 2025-01-17 12:46:27 +08:00
Zhang Jingqiang
b272514259 g3proxy: enable h2 ICAP testcase 2024-12-17 16:45:56 +08:00
Zhang Jingqiang
bc81e0a8d3 enable metrics for g3fcgen and g3iploc in coverage CI 2024-12-17 10:28:16 +08:00
Zhang Jingqiang
91b8ff37fe g3proxy: add coverage CI for route_geoip escaper 2024-12-17 10:28:16 +08:00
Zhang Jingqiang
3da4bb8f1d split CI script to multiple files 2024-12-08 21:41:17 +08:00
Zhang Jingqiang
ce6c0dfc81
g3proxy: add more log and limit options in CI config (#395) 2024-11-28 16:29:45 +08:00
Zhang Jingqiang
4bea3a596e
g3proxy: add user audit CI testcase (#387) 2024-11-25 12:01:09 +08:00
Zhang Jingqiang
e685de79d1 g3proxy: add route_failover CI testcase 2024-11-25 06:52:07 +08:00
Zhang Jingqiang
c484e1373b g3proxy: delete outdated CI testcase 2024-11-25 06:52:07 +08:00
Zhang Jingqiang
765523434e g3proxy: add standalone ICAP testcase 2024-11-23 09:53:44 +08:00
Zhang Jingqiang
0b7c3012c8 g3proxy: enable HTTP1 ICAP testcase 2024-11-23 08:19:48 +08:00
Zhang Jingqiang
9007816783 g3proxy: disable ICAP testcase 2024-11-22 18:35:56 +08:00
Zhang Jingqiang
fe7345e0d9 g3proxy: add h2 testcase 2024-11-22 18:35:56 +08:00
Zhang Jingqiang
563df02f9c g3proxy: add base audit ci test 2024-11-22 07:47:35 +08:00
Zhang Jingqiang
9f329b255b g3proxy: delete outdated testcase 2024-11-22 07:47:35 +08:00
Zhang Jingqiang
0f6bcd9b37 g3proxy: enable metrics in CI test 2024-11-21 17:32:10 +08:00
Zhang Jingqiang
d49f743b77 g3proxy: install fluent-bit in CI 2024-11-21 17:32:10 +08:00
Zhang Jingqiang
e6628f871c g3proxy: add dynamic user testcase 2024-11-21 17:32:10 +08:00
Zhang Jingqiang
d1358f64d9 g3proxy: add intelli proxy server testcase 2024-11-21 17:32:10 +08:00
Zhang Jingqiang
b8d7760c2c g3proxy: delete outdated ci tests 2024-11-21 17:32:10 +08:00
Zhang Jingqiang
074d09c056
g3proxy: add testcase for float escapers (#379)
* g3proxy: make direct_float escaper usable if only ipv4 set

* g3proxy: add testcases for *_float escaper
2024-11-20 16:22:20 +08:00
Zhang Jingqiang
cffba2feff
g3proxy: delete outdated ci test (#376) 2024-11-19 17:28:07 +08:00
Zhang Jingqiang
7ca7fffe8a g3proxy: add ftp over http test script via pycurl 2024-11-19 15:18:21 +08:00
Zhang Jingqiang
cfb18409cb
g3proxy: add fluentd log in coverage CI (#375) 2024-11-18 22:37:22 +08:00