litellm/tests/e2e
Devin AI c7e5f71251 fix(ocr-security): bound error bodies, reuse validating client, widen IPv6 denylist
Branch on status before reading upstream error bodies and stream at most the error cap for document fetch, Reducto upload, Azure poll, and primary provider responses; add a chunked no-Content-Length oversized-error regression.

Reuse a bounded cache of security-validating document clients keyed by scheme, host, port, and the full validated address set so redirects across ports cannot reuse stale pins, replacing per-call client construction while preserving the anti-rebinding contract.

Import the optional native RustOcrInputError directly behind ImportError instead of getattr, keeping the test override.

Pin the url workspace dependency to =2.5.8 and expand the IPv6 denylist to NAT64 64:ff9b::/96 and 64:ff9b:1::/48 with embedded private or metadata IPv4, discard 100::/64, Teredo 2001::/32, benchmarking 2001:2::/48, ORCHID and ORCHIDv2, and 6to4 2002::/16 with embedded private IPv4, keeping globally routable targets allowed.

Remove PR-added comments and docstrings across Rust, Python, and tests.

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
2026-07-17 00:21:06 +00:00
..
budgets test(e2e): drop xfail markers for the now-fixed team-budget-JSON and custom-pricing-leak bugs (#31249) 2026-06-24 18:51:10 -07:00
gateway fix(ocr-security): bound error bodies, reuse validating client, widen IPv6 denylist 2026-07-17 00:21:06 +00:00
llm_translation test(e2e): drop xfail markers for the now-fixed team-budget-JSON and custom-pricing-leak bugs (#31249) 2026-06-24 18:51:10 -07:00
spend_tracking test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00
conftest.py test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00
e2e_config.py test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00
e2e_gateway.py test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00
e2e_http.py test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00
lifecycle.py test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00
models.py test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00
pytest.ini test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00
test_lifecycle.py test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00
transport.py test: add e2e tests for spend, budgets and llms (#30869) 2026-06-24 15:01:57 -07:00