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 eefce6d452e Fix flaky Glue OpenLineage test that calls the real AWS 
endpoint (#70500)
eefce6d452e is described below

commit eefce6d452e1ffd3a39dd466fc23548fe2f7dc1a
Author: PoAn Yang <[email protected]>
AuthorDate: Tue Jul 28 00:01:43 2026 +0900

    Fix flaky Glue OpenLineage test that calls the real AWS endpoint (#70500)
---
 providers/amazon/tests/unit/amazon/aws/operators/test_glue.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/providers/amazon/tests/unit/amazon/aws/operators/test_glue.py 
b/providers/amazon/tests/unit/amazon/aws/operators/test_glue.py
index 99d22e3bb5e..6c2c3c316a9 100644
--- a/providers/amazon/tests/unit/amazon/aws/operators/test_glue.py
+++ b/providers/amazon/tests/unit/amazon/aws/operators/test_glue.py
@@ -769,6 +769,9 @@ class TestGlueJobOperatorOpenLineageInjection:
         mock_ti = mock.MagicMock()
         mock_ti.xcom_pull.return_value = None  # no previous run
         context = {"ti": mock_ti}
+        mock_glue_client = mock.MagicMock()
+        glue.hook.conn = mock_glue_client
+        mock_glue_client.get_job_runs.return_value = {"JobRuns": []}
         glue.execute(context)
 
         mock_inject_parent.assert_called_once()

Reply via email to