kaxil commented on code in PR #62964:
URL: https://github.com/apache/airflow/pull/62964#discussion_r2892602989


##########
airflow-core/tests/unit/executors/test_workloads.py:
##########
@@ -25,3 +25,46 @@ def test_task_instance_alias_keeps_backwards_compat():
     assert TaskInstance is TaskInstanceDTO
     assert workloads.TaskInstance is TaskInstanceDTO
     assert workloads.TaskInstanceDTO is TaskInstanceDTO
+
+
+def test_token_excluded_from_workload_repr():
+    """Ensure JWT tokens do not leak into log output via repr().
+
+    Regression test for https://github.com/apache/airflow/issues/62428
+    """
+    from pathlib import PurePosixPath
+    from uuid import uuid4
+
+    from airflow.executors.workloads.base import BundleInfo
+    from airflow.executors.workloads.task import ExecuteTask, TaskInstanceDTO

Review Comment:
   at the top of the file, please



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to