This is an automated email from the ASF dual-hosted git repository.
vincbeck pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new d8532e28ac6 Remove duplicate Keycloak token-binding test (#75882)
d8532e28ac6 is described below
commit d8532e28ac6610d529cfee03d2f74a6566c9bdcd
Author: Hussein Awala <[email protected]>
AuthorDate: Wed Oct 28 20:50:57 2026 +0100
Remove duplicate Keycloak token-binding test (#75882)
Two token-binding success tests have identical marks, fixtures, input
tokens and assertions. The remaining case retains the same compatibility gate.
---
.../auth_manager/test_keycloak_auth_manager.py | 23 ----------------------
1 file changed, 23 deletions(-)
diff --git
a/providers/keycloak/tests/unit/keycloak/auth_manager/test_keycloak_auth_manager.py
b/providers/keycloak/tests/unit/keycloak/auth_manager/test_keycloak_auth_manager.py
index a129322ac58..03f3d518205 100644
---
a/providers/keycloak/tests/unit/keycloak/auth_manager/test_keycloak_auth_manager.py
+++
b/providers/keycloak/tests/unit/keycloak/auth_manager/test_keycloak_auth_manager.py
@@ -328,29 +328,6 @@ class TestKeycloakAuthManager:
):
assert await auth_manager.get_user_from_token("token") is None
- @pytest.mark.skipif(not AIRFLOW_V_3_3_PLUS, reason="Uses
KeycloakJWTMiddleware and separate cookies")
- @pytest.mark.asyncio
- async def test_get_user_from_token_keycloak_jwt(self, auth_manager):
- mock_get_user_from_token = AsyncMock(
- return_value=KeycloakAuthManagerUser(
- user_id="user_id", name="name", access_token="",
refresh_token=None
- )
- )
- with (
- patch.object(
- BaseAuthManager,
- "get_user_from_token",
- mock_get_user_from_token,
- ),
- ):
- access_token = keycloak_token("user_id")
- user = await auth_manager.get_user_from_token("token",
access_token, "refresh_token")
- mock_get_user_from_token.assert_called_with("token")
- assert user.get_id() == "user_id"
- assert user.get_name() == "name"
- assert user.access_token == access_token
- assert user.refresh_token == "refresh_token"
-
@pytest.mark.skipif(not AIRFLOW_V_3_3_PLUS, reason="Uses
KeycloakJWTMiddleware and separate cookies")
@pytest.mark.asyncio
async def test_get_user_from_token_rejects_another_subjects_token(self,
auth_manager):