litellm/tests/proxy_behavior/management
Yuneng Jiang 016b7c6e09
test(proxy_behavior): address Greptile review — env force, pagination, dedup
- conftest: force LITELLM_MASTER_KEY / CONFIG_FILE_PATH unconditionally
  instead of setdefault. An ambient LITELLM_MASTER_KEY with a different
  value would make the proxy authenticate on that key while the tests
  still send MASTER_KEY → silent 401s.
- test_key_list: paginate /key/list instead of a single size=100 request.
  size is capped at 100 by the endpoint, so on a non-fresh DB a single
  page could truncate PROXY_ADMIN's view and a seeded key could fall off
  the page. Walk total_pages.
- conftest: hoist the duplicated _create_scratch_key helper (copy-pasted
  and already diverged across test_key_{update,regenerate,delete}.py)
  into a single shared create_scratch_key.
- Delete regression_replay/README.md — G4 regression-replay evidence
  belongs in the PR description, not a committed doc file (repo docs
  policy + the effort's own plan both say so). Content moved to the PR.
2026-05-20 19:01:27 -07:00
..
__init__.py test(proxy_behavior): scaffold session-scoped async ASGI client + liveness smoke 2026-05-19 21:21:00 -07:00
actors.py chore(proxy_behavior): drop README + trim comments 2026-05-20 16:56:15 -07:00
conftest.py test(proxy_behavior): address Greptile review — env force, pagination, dedup 2026-05-20 19:01:27 -07:00
test_key_delete.py test(proxy_behavior): address Greptile review — env force, pagination, dedup 2026-05-20 19:01:27 -07:00
test_key_generate.py chore(proxy_behavior): drop README + trim comments 2026-05-20 16:56:15 -07:00
test_key_info.py chore(proxy_behavior): drop README + trim comments 2026-05-20 16:56:15 -07:00
test_key_list.py test(proxy_behavior): address Greptile review — env force, pagination, dedup 2026-05-20 19:01:27 -07:00
test_key_regenerate.py test(proxy_behavior): address Greptile review — env force, pagination, dedup 2026-05-20 19:01:27 -07:00
test_key_update.py test(proxy_behavior): address Greptile review — env force, pagination, dedup 2026-05-20 19:01:27 -07:00
test_no_management_imports.py chore(proxy_behavior): drop README + trim comments 2026-05-20 16:56:15 -07:00
test_scratch_teardown.py chore(proxy_behavior): drop README + trim comments 2026-05-20 16:56:15 -07:00
test_smoke.py chore(proxy_behavior): drop README + trim comments 2026-05-20 16:56:15 -07:00
test_world_seed.py chore(proxy_behavior): drop README + trim comments 2026-05-20 16:56:15 -07:00