llama-stack-mirror/tests/unit/server
Eric Huang ebea3c8277 api access
- Create BaseServerMiddleware base class for server middleware
- Refactor TracingMiddleware to extend BaseServerMiddleware
- Consolidate route matching logic in base class
- Update server.py to use user_from_scope utility
- Add required_scope parameter to WebMethod in schema_utils.py
- Create AccessControlMiddleware with simplified scope checking
- Update telemetry API to use required_scope protection
- Add comprehensive test coverage for access control logic
- Integrate access control middleware into server setup
- Rename AccessControlMiddleware to AuthorizationMiddleware for better clarity
- Update imports and references in server.py and tests
- Keep the same functionality and API
- Merge authorization logic directly into AuthenticationMiddleware
- Remove separate access_control.py file
- Update middleware setup in server.py to use single middleware
- Rename and update tests to test the merged functionality
- AuthenticationMiddleware now handles both authentication and authorization
2025-07-24 14:56:20 -07:00
..
test_access_control.py fix: fixed test_access_control.py unit test (#2876) 2025-07-23 11:50:20 -07:00
test_auth.py api access 2025-07-24 14:56:20 -07:00
test_auth_github.py feat(auth): support github tokens (#2509) 2025-07-08 11:02:36 -07:00
test_quota.py feat(quota): add server‑side per‑client request quotas (requires auth) (#2096) 2025-05-21 10:58:45 +02:00
test_replace_env_vars.py chore(test): migrate unit tests from unittest to pytest for server en… (#2795) 2025-07-17 16:20:12 -07:00
test_resolver.py chore: default to pytest asyncio-mode=auto (#2730) 2025-07-11 13:00:24 -07:00
test_server.py fix: AccessDeniedError leads to HTTP 500 instead of error 403 (#2595) 2025-07-03 10:50:49 -07:00
test_sse.py chore: default to pytest asyncio-mode=auto (#2730) 2025-07-11 13:00:24 -07:00