test(egress): cover egress_addon adapter; drop coverage omit
test / unit (push) Successful in 1m5s
test / integration (push) Successful in 29s
lint / lint (push) Successful in 2m26s
test / unit (pull_request) Successful in 46s
test / integration (pull_request) Successful in 17s
Update Quality Badges / update-badges (push) Failing after 2m28s
test / unit (push) Successful in 1m5s
test / integration (push) Successful in 29s
lint / lint (push) Successful in 2m26s
test / unit (pull_request) Successful in 46s
test / integration (pull_request) Successful in 17s
Update Quality Badges / update-badges (push) Failing after 2m28s
The mitmproxy adapter `egress_addon.py` was omitted from coverage because it can't import on the host (mitmproxy is sidecar-only) and only its log-redaction helpers were exercised. Add a request/response flow suite that stubs mitmproxy and drives the adapter glue: introspection, allowlist enforcement, auth strip+inject, git push/fetch blocking, the outbound-DLP block/redact/supervise policy branches (including the operator approval round-trip), inbound response scanning, and WebSocket frame scanning. Removes the `bot_bottle/egress_addon.py` omit from `.coveragerc`; the adapter now reports ~76% covered. Closes #286 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NkwFXLFff9PYPy4wgVBJp9
This commit was merged in pull request #290.
This commit is contained in:
@@ -4,6 +4,5 @@ source = .
|
||||
|
||||
[report]
|
||||
omit =
|
||||
bot_bottle/egress_addon.py
|
||||
bot_bottle/cli/tui.py
|
||||
tests/*
|
||||
|
||||
Reference in New Issue
Block a user