You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dheerenmohta (via GitHub)" <gi...@apache.org> on 2026/09/03 13:42:36 UTC

[PR] Add tests for edge3 worker API app and JWT auth [airflow]

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add tests for edge3 worker API app and JWT auth [airflow]

Posted by "dheerajturaga (via GitHub)" <gi...@apache.org>.
dheerajturaga merged PR #72482:
URL: https://github.com/apache/airflow/pull/72482


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org