litellm/tests/unit/proxy/agent_endpoints
yujonglee ed6f998ea2
feat(db): route jwt provisioning writes through rust repositories (#52756)
* feat(db): route jwt provisioning writes through rust repositories

Add the single-statement writes native JWT provisioning needs to litellm-repositories and
route Python through them: UserRepository::set_role and ::insert, JwtKeyMappingRepository::insert
and AgentIdentityRepository::record_authentication replace the Prisma calls behind
PythonAuthHost.set_user_role, the user_id_upsert create in get_user_object, the mapping insert
in create_key_mapping and AgentIdentityStore.record_authentication.

Each write runs on the writer through Database::run under the call type Prisma reports, returns
the stored row in its read's shape, and stamps timestamps in UTC. A sign-in that loses the user
insert to a concurrent one now gets the user that won and skips the default team adds, where the
Prisma create raised a unique violation.

* chore: drop the new agent repository lint rule

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-20 14:53:01 +09:00
..
auth feat(auth): read projects, tags, access groups and object permissions through rust repositories (#52178) 2026-11-18 22:32:06 +00:00
__init__.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_a2a_endpoints.py fix(azure)!: answer 401 when Entra rejects the deployment's credential (#49863) 2026-11-04 20:44:55 +00:00
test_a2a_version_e2e.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_agent_header_isolation.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_agent_headers.py feat(agents): support Databricks Agent Platform agents in the agent gateway (#45681) 2026-10-15 12:42:06 -07:00
test_agent_rbac.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_agent_registry.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_agent_search.py fix(proxy): treat empty agent and skill search embedding model as not configured (#49485) 2026-10-31 15:32:26 -07:00
test_databricks_oauth.py feat(agents): support Databricks Agent Platform agents in the agent gateway (#45681) 2026-10-15 12:42:06 -07:00
test_endpoints.py feat(auth): decide key and JWT authentication in a Rust core (#51374) 2026-11-17 14:07:47 +09:00
test_identity.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_identity_store.py feat(db): route jwt provisioning writes through rust repositories (#52756) 2026-11-20 14:53:01 +09:00
test_kill_switch.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_managed_identity.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_model_list_helpers.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00