ruff/crates/ruff_linter/resources/test/fixtures/airflow/AIR302_fab.py
Wei Lee 504fa20057
[airflow] Apply auto fixes to cases where the names have changed in Airflow 3 (AIR302) (#17553)
## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

Apply auto fixes to cases where the names have changed in Airflow 3 in
AIR302 and split the huge test cases into different test cases based on
proivder

## Test Plan

<!-- How was it tested? -->

the test cases has been split into multiple for easier checking
2025-04-28 16:35:17 -04:00

55 lines
1.1 KiB
Python

from __future__ import annotations
from airflow.api.auth.backend.basic_auth import (
CLIENT_AUTH,
auth_current_user,
init_app,
requires_authentication,
)
CLIENT_AUTH
init_app()
auth_current_user()
requires_authentication()
from airflow.api.auth.backend.kerberos_auth import (
CLIENT_AUTH,
find_user,
init_app,
log,
requires_authentication,
)
log()
CLIENT_AUTH
find_user()
init_app()
requires_authentication()
from airflow.auth.managers.fab.api.auth.backend.kerberos_auth import (
CLIENT_AUTH,
find_user,
init_app,
log,
requires_authentication,
)
log()
CLIENT_AUTH
find_user()
init_app()
requires_authentication()
from airflow.auth.managers.fab.fab_auth_manager import FabAuthManager
from airflow.auth.managers.fab.security_manager.override import (
MAX_NUM_DATABASE_USER_SESSIONS,
FabAirflowSecurityManagerOverride,
)
FabAuthManager()
MAX_NUM_DATABASE_USER_SESSIONS
FabAirflowSecurityManagerOverride()
from airflow.www.security import FabAirflowSecurityManagerOverride
FabAirflowSecurityManagerOverride()