litellm/tests/e2e/logging
devin-ai-integration[bot] e0398455d0
test: migrate tests/llm_translation into unit, integration and e2e tiers (#45759)
* test: migrate selected llm translation contracts

* test: migrate anthropic completion translation tests

* test: migrate bedrock and cohere translation tests

* test: tighten bedrock translation migration

* test: migrate azure and openai model translation tests

* test: migrate openai and small-provider translation tests

* test: migrate gemini and vertex translation tests

* test: migrate optional params and rerank translation tests

* test: migrate huggingface, json and openrouter translation tests

* test: fix openrouter integration expectations

* test: migrate databricks, xai, cometapi and fireworks translation tests

* test: migrate ovhcloud, prompt and small provider translation tests

* test: split reasoning effort grid into unit and e2e

* test: migrate router and realtime guardrail translation tests

* test: migrate google interactions translation tests

* test: migrate a2a, evals, skills and hosted vllm translation tests

* test: remove remaining llm translation suite

* test: tighten migrated llm translation unit tests and land missing rows

Restores rows the first pass dropped or weakened (bedrock agentcore and openwebui thinking stream, anthropic prefix, citations and tool_choice, azure agents handler, huggingface bare api_base, optional params num_retries, alternating roles, rerank response type), replaces truthiness and call-count checks with whole-value assertions, and moves tests to the mirror file of the code they cover

* test: move cohere, databricks, fireworks and gemini rows to mirror files over mocked HTTP

Restores three TestCohereV2Transform methods the first pass nested out of collection, replaces direct transform calls with respx-backed completion calls, and drops the databricks and fireworks files that sat outside their mirror paths

* test: close lost-intent gaps found in review of the llm translation migration

Points the hosted-mock guard at the triton test's new integration path, restores exact rerank result assertions for infinity, drops the reasoning e2e fallback that passed for any multi-line answer, and adds the mixtral invoke system prompt variants, eval deletion, and async pdf url download that the legacy suite exercised

* test: assert provider acceptance in the reasoning effort e2e

The live half of the split grid proves each route accepts reasoning_effort. claude-fable-5-1 on the direct route answers without surfacing reasoning content, so a reasoning-presence check either fails on head or needs a fallback that passes for any answer. Wire shape stays covered by the unit grid

* test: cover async and stream-end paths the legacy translation suite exercised

Adds async variants for bedrock converse file and thinking content, bedrock embedding timeout and region resolution, interaction stream termination and success logging, xai reasoning token folding, and bytes chunks with a prefix before data:. Also scopes the vertex safety settings global in test_vertex_safety_settings with monkeypatch so it stops leaking into gemini request bodies on the same worker

* test: type the new llm translation e2e calls and mark moved fixture dirs as packages

* test: name the reasoning effort e2e models as module constants

* test: assert reasoning content, register the new gemini coverage ids and give the guardrail config e2e a unique name

* test: block the prompt the shared guardrail denies and drop the reasoning presence check

* test: drop the duplicate litellm import left by the main sync

---------

Co-authored-by: yuneng <yuneng@berri.ai>
2026-10-11 07:58:53 +00:00
..
conftest.py test(e2e): add logging e2e coverage (s3_v2, gcs_bucket, team langfuse callback, datadog failure) (#38552) 2026-08-29 09:43:44 -07:00
datadog_reader.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
gcs_reader.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
logging_client.py test(e2e): record steps for raw transport calls and poll helpers (#45150) 2026-10-07 15:21:26 -07:00
s3_reader.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
test_datadog_log_e2e.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
test_gcs_log_e2e.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
test_langsmith_batch_serialization_e2e.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
test_otel_trace_e2e.py test(e2e): move the harness self-tests out of tests/e2e (#45172) 2026-10-07 22:20:02 +00:00
test_otel_v2_langfuse_generation_output_e2e.py test: migrate tests/llm_translation into unit, integration and e2e tiers (#45759) 2026-10-11 07:58:53 +00:00
test_prometheus_cardinality_e2e.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
test_prometheus_queue_time_e2e.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
test_responses_langfuse_usage_e2e.py fix(langfuse): log Responses API token usage instead of zeros (#42212) 2026-10-10 16:42:59 -07:00
test_s3_log_e2e.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
test_team_langfuse_callback_e2e.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
test_weave_log_e2e.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00
weave_reader.py test(e2e): tag guardrails and logging tests with Subject metadata and record client steps (#44963) 2026-10-07 10:32:25 -07:00