litellm/tests/test_litellm/proxy/pass_through_endpoints
derhornspieler 0a69790bb9 refactor(anthropic): drop the recursion the workload identity paths did not need
The repo's recursion guard rejects unignored recursive functions, and this branch had
added three. Two were plain iteration written as recursion: the model list walked its
pages recursively, and the base URL stripped chat suffixes by calling itself. The third
mattered more: a token exchange follower whose leader published nothing called get_token
again, so a contended entry grew the stack one frame per failed leader

All three are loops now. The suffix strip re-strips trailing slashes on each pass, which
the recursion got for free by re-entering a function that begins by stripping them, and
which a doubled suffix needs to keep matching

The passthrough header tests also pin SERVER_ROOT_PATH. They drive the real relay, and a
sibling test leaving that variable set re-prefixes the route, so the request 404s before
any header is built and the assertion never runs
2026-08-23 17:20:42 -04:00
..
llm_provider_handlers test: add regression coverage for twelve closed issues (#37974) 2026-08-22 22:24:05 +00:00
test_carry_guardrail_logging_info.py fix(passthrough): emit otel guardrail span when a guardrail blocks (#29470) 2026-06-02 11:46:25 -07:00
test_llm_pass_through_endpoints.py refactor(anthropic): drop the recursion the workload identity paths did not need 2026-08-23 17:20:42 -04:00
test_managed_id_rewriter.py fix(proxy): omit litellm_batch_guardrail when no guardrail acted (#37964) 2026-08-22 14:51:11 -07:00
test_method_specific_routing.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_pass_through_endpoints.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_passthrough_auth_default.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_passthrough_endpoint_router.py fix: harden vertex live passthrough against client model forms and dict credentials 2026-08-20 03:05:48 -07:00
test_passthrough_endpoints_common_utils.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_passthrough_guardrail_block_otel_span.py fix: missing span for guardrail passthrough (#29552) 2026-06-03 01:25:15 +00:00
test_passthrough_guardrails.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_passthrough_guardrails_field_targeting.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_passthrough_post_call_guardrails.py test(lint): ban blind pytest.raises(Exception) with ruff B017 (#37731) 2026-08-20 18:09:42 -07:00
test_streaming_handler_interrupt.py fix(proxy): preserve crlf line endings when injecting streamed usage cost 2026-08-11 00:45:32 -07:00
test_upstream_usage_headers.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_vertex_ai_batch_passthrough.py fix(batches): strip NUL bytes from passthrough batch tags before the managed object write (#36688) 2026-08-12 13:31:51 -07:00
test_vertex_passthrough_load_balancing.py fix(passthrough): protect accept-encoding from x-pass- forwarding 2026-08-15 15:34:28 -07:00
test_watsonx_proxy_route.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00