litellm/tests/e2e/quota_management
Yuneng Jiang a6fb21c3f8
fix(e2e): record cookie-setting provider responses and keep prompt-caching tests live
The first cache-enabled litellm-e2e build (211) showed three gaps in the shared provider cache:

Every OpenAI response carries Cloudflare bot-management Set-Cookie headers, and the capture rejected any response with Set-Cookie, so no OpenAI response was ever recorded (179 of 372 misses rejected). The edge already withholds Set-Cookie from the proxy, so drop it before validating and storing instead of rejecting.

The provider prompt-caching tests need fresh provider state: a replayed priming response reports cache creation rather than a cache read, and the TPM test then trips the key limit. Mark both modules provider_live.

TestApiBaseSeam::test_live_mode_returns_none ran inside the cache-enabled runner and saw the shared edge; isolate it from E2E_PROVIDER_CACHE.
2026-09-15 20:26:20 -07:00
..
budgets test(e2e): cover model access group budgets against a live proxy 2026-08-29 15:46:49 -07:00
ratelimit fix(e2e): record cookie-setting provider responses and keep prompt-caching tests live 2026-09-15 20:26:20 -07:00
spend_tracking test(spend): preserve multi-day coverage and immutable assertions 2026-09-14 22:26:20 -07:00