litellm/tests/e2e/a2a
mubashir1osmani 0d483a7df9
test(e2e): pin the a2a bridge agent's Anthropic key so message/send works (#34512)
The a2a completion-bridge tests registered the agent with only
custom_llm_provider and model, so the bridge's litellm.acompletion had no
api_key and relied on the gateway resolving ANTHROPIC_API_KEY from its ambient
env. When that env var is absent, POST /a2a/{id} returns 500 with
"Missing Anthropic API Key" and every message/send test (completion bridge,
pinned v0.3/v1.0 message shapes, semver serves) fails while the
register/discovery/rejection tests still pass.

Give A2ABridgeParams an optional api_key and register the bridge agent with
api_key="os.environ/ANTHROPIC_API_KEY", matching how the rest of the suite
wires anthropic-backed models (e.g. the ratelimit redis tests). The agent now
carries its provider key explicitly instead of depending on ambient gateway env.
2026-07-24 10:50:26 -07:00
..
a2a_client.py test(e2e): pin the a2a bridge agent's Anthropic key so message/send works (#34512) 2026-07-24 10:50:26 -07:00
conftest.py test(e2e): add live A2A agent e2e suite 2026-07-21 00:10:49 +00:00
test_a2a_agent_e2e.py test(e2e): pin the a2a bridge agent's Anthropic key so message/send works (#34512) 2026-07-24 10:50:26 -07:00