dheerenmohta opened a new pull request, #72482:
URL: https://github.com/apache/airflow/pull/72482

   Adds test coverage for the edge3 provider's worker API app factory and JWT 
authorization, which previously had none.
   
   - `providers/edge3/tests/unit/edge3/worker_api/test_auth.py` — method-claim 
matching/mismatch/missing JWT authorization, all 7 handled exception types 
collapsing into an anonymized 403 via `_forbidden_response`, `jwt_validator()` 
`@cache` semantics, `jwt_leeway` config plumbing, and the `/edge_worker/v1/` 
prefix-stripping in `jwt_token_authorization_rest`.
   - `providers/edge3/tests/unit/edge3/worker_api/test_app.py` — 
`create_edge_worker_api_app()`: v1-prefixed routers, ui-prefixed router, 
`/static` and `/res` `StaticFiles` mounts, and `.cjs` mimetype registration.
   - Removes the now-covered entries for these two files from the 
`OVERLOOKED_TESTS` allowlist in 
`airflow-core/tests/unit/always/test_project_structure.py`.
   
   closes: #72266
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Sonnet 5)
   
   Generated-by: Claude Code (Sonnet 5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to