litellm/tests/test_litellm/proxy/credential_endpoints
Yucheng Zhu 168a20b065
Some checks failed
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
fix: bind GET /credentials to its handler, not the verdict helper
The type-discipline refactor inserted _destination_verdict between the
@router.get decorator and get_credentials, so FastAPI registered the helper
as the listing endpoint. It declares a CredentialItem parameter, which FastAPI
reads as a required request body, and every GET /credentials returned 422.

Add the GET routing regression test alongside the existing PATCH one; the
other tests call get_credentials directly and stay green while the route is
dead.
2026-08-12 10:33:53 -07:00
..
test_endpoints.py fix: bind GET /credentials to its handler, not the verdict helper 2026-08-12 10:33:53 -07:00