litellm/tests/e2e/access_control
Yuneng Jiang ed01f7316b
test(e2e): assert the model allow-list permits, not only denies
Every case in TestAccessControl asserted that something was refused. A gateway
that denied the allow-listed model too would have passed all of them, so the
suite could not tell "denied correctly" from "broken outright".

Adds the positive half: a key allow-listed for gemini-2.5-flash can call it and
gets back a real completion rather than a 200-wrapped error.

Also tightens the unknown-model case. It accepted any valid JSON, so a bare
"{}" or even "null" satisfied it. It now requires the OpenAI-shaped error
envelope with a message a client can actually surface, parsed through a typed
model instead of json.loads.
2026-08-13 13:37:31 -07:00
..
access_control_client.py test(e2e): assert the model allow-list permits, not only denies 2026-08-13 13:37:31 -07:00
conftest.py test(e2e): rename Gateway to ProxyClient and expose it as a session-scoped fixture (#33750) 2026-07-18 18:41:18 +00:00
test_access_control_e2e.py test(e2e): assert the model allow-list permits, not only denies 2026-08-13 13:37:31 -07:00
test_chat_auth_headers_e2e.py test(e2e): vendor API testing coverage (#34557) 2026-08-12 01:07:52 +00:00