This is an automated email from the ASF dual-hosted git repository.

potiuk 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 f1cb4076004 fix: add test for upstream_map_indexes not in HEAD API 
response (#62283)
f1cb4076004 is described below

commit f1cb4076004c5b4ffab7364b95563cc0daf63c92
Author: Stanislav Chernov <[email protected]>
AuthorDate: Wed Mar 11 16:22:15 2026 +0300

    fix: add test for upstream_map_indexes not in HEAD API response (#62283)
    
    Fixes apache/airflow#50541
---
 .../api_fastapi/execution_api/versions/head/test_task_instances.py   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_task_instances.py
 
b/airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_task_instances.py
index f821ba4440a..835a8c46139 100644
--- 
a/airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_task_instances.py
+++ 
b/airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_task_instances.py
@@ -178,7 +178,8 @@ class TestTIRunState:
         )
 
         assert response.status_code == 200
-        assert response.json() == {
+        result = response.json()
+        assert result == {
             "dag_run": {
                 "dag_id": ti.dag_id,
                 "run_id": "test",
@@ -204,6 +205,8 @@ class TestTIRunState:
             "connections": [],
             "xcom_keys_to_clear": [],
         }
+        # upstream_map_indexes is now computed by Task SDK, not returned by 
the server in HEAD version
+        assert "upstream_map_indexes" not in result
 
         # Refresh the Task Instance from the database so that we can check the 
updated values
         session.refresh(ti)

Reply via email to