test: Add proxy e2e test (#348)

* test: Add proxy e2e test

* fix: Code review fixes

* test: Add dependency cooldown skip list test case
This commit is contained in:
Abhisek Datta
2026-06-23 22:21:57 +05:30
committed by GitHub
parent d360e75897
commit 25dd12d7a4
10 changed files with 1326 additions and 13 deletions
+10
View File
@@ -22,6 +22,16 @@ go test ./config/ -v -count=1 # Run specific package tests
- `analyzer/` — Package security analysis
- `internal/` — Internal utilities (analytics, eventlog, flows, ui)
## Proxy E2E Tests
- `test/proxye2e/` is a hermetic (no network) table-driven framework for the proxy flow. It
runs the real proxy, interceptors, cooldown handlers and analyzer verdict-mapping against an
in-process mock registry and a stub malysis gRPC client.
- Any security-sensitive change to the proxy flow (interceptors, cooldown, malware
allow/confirm/block, trusted/insecure bypass, new controls) MUST add or extend an E2E case
in `test/proxye2e/`. Add a `TestCase` with `Config`/`Setup`/`Exec`/`Assert`; do not build new
scaffolding.
## Code Style
- Keep things short and simple