Skip to content

Add unit tests for auth manager login datamodels (#72265) - #75544

Merged
vincbeck merged 3 commits into
apache:mainfrom
anisayakmitra-in:test/auth-manager-login-datamodels
Oct 28, 2026
Merged

vincbeck merged 3 commits into
apache:mainfrom
anisayakmitra-in:test/auth-manager-login-datamodels

Conversation

@anisayakmitra-in

Copy link
Copy Markdown
Contributor

Description

Related to #72265.

Adds missing unit tests for auth manager login datamodels:

  • airflow.providers.amazon.aws.auth_manager.datamodels.login.LoginResponse (valid construction, dict validation, and required field enforcement)
  • airflow.providers.fab.auth_manager.api_fastapi.datamodels.login.LoginResponse (valid construction, dict validation, and required field enforcement)
  • Removes both modules from OVERLOOKED_TESTS in airflow-core/tests/unit/always/test_project_structure.py.

Use case/motivation

Improves provider test completeness for FastAPI auth manager endpoints and reduces OVERLOOKED_TESTS.

Related Issues

Closes: #72265

Checklist

  • Are you creating a PR in a separate branch?
  • Did you check that there is no similar PR already open?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

- Add test_login.py for amazon auth_manager datamodels
- Add test_login.py for fab auth_manager datamodels
- Remove both from OVERLOOKED_TESTS in test_project_structure.py
@vincbeck
vincbeck enabled auto-merge (squash) October 26, 2026 14:35
auto-merge was automatically disabled October 26, 2026 16:04

Head branch was pushed to by a user without write access

@vincbeck
vincbeck enabled auto-merge (squash) October 26, 2026 17:04
…_0_PLUS

Skip auth manager login datamodel tests on Airflow < 3.0.0 where
airflow.api_fastapi is not available, fixing Compat 2.11.1 failure.
auto-merge was automatically disabled October 26, 2026 18:27

Head branch was pushed to by a user without write access

@vincbeck
vincbeck enabled auto-merge (squash) October 26, 2026 23:20
@anisayakmitra-in

Copy link
Copy Markdown
Contributor Author

Note for committers: The lone failure in Compat 3.0.6:P3.11:amazon...google is an infrastructure flake (TimeoutError: mongod at 172.17.0.1:32768 did not answer ping within 60s in providers/mongo/tests/unit/mongo/hooks/test_mongo.py). All 5,302 Amazon provider tests in that job passed cleanly. Ready for rerun or merge.

@vincbeck
vincbeck merged commit 3722c7f into apache:main Oct 28, 2026
137 of 139 checks passed
@boring-cyborg

boring-cyborg Bot commented Oct 28, 2026

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add missing tests for cncf.kubernetes script and delete utilities

2 participants