This is an automated email from the ASF dual-hosted git repository.
ashb 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 592cf3ffdd2 Use the current user in the HITL detail tests instead of
hardcoding (#74184)
592cf3ffdd2 is described below
commit 592cf3ffdd2e7424c6b55b76fe9d18596752bec1
Author: Ash Berlin-Taylor <[email protected]>
AuthorDate: Sun Oct 4 12:02:16 2026 +0100
Use the current user in the HITL detail tests instead of hardcoding (#74184)
---
.../tests/unit/api_fastapi/core_api/routes/public/test_hitl.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_hitl.py
b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_hitl.py
index 87cd5cbf871..9981432d0c4 100644
--- a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_hitl.py
+++ b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_hitl.py
@@ -38,6 +38,7 @@ from airflow.models.log import Log
from airflow.models.taskinstance import TaskInstance as TIModel
from airflow.models.team import Team
from airflow.sdk.execution_time.hitl import HITLUser
+from airflow.utils.platform import getuser
from airflow.utils.session import NEW_SESSION
from airflow.utils.state import TaskInstanceState
@@ -289,7 +290,7 @@ def expected_sample_hitl_detail_dict(sample_ti:
TaskInstance) -> dict[str, Any]:
"trigger": None,
"triggerer_job": None,
"try_number": 0,
- "unixname": "root",
+ "unixname": getuser(),
},
}