From 3a35817e56265abfadde8c8a7d2261ef7a8f1de6 Mon Sep 17 00:00:00 2001 From: jx2lee Date: Tue, 4 Feb 2025 20:07:53 +0900 Subject: [PATCH] updated test --- tests/dag_processing/test_dag_bundles.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/dag_processing/test_dag_bundles.py b/tests/dag_processing/test_dag_bundles.py index 87f8032e896563..01309896599bce 100644 --- a/tests/dag_processing/test_dag_bundles.py +++ b/tests/dag_processing/test_dag_bundles.py @@ -147,7 +147,6 @@ def setup_class(cls) -> None: conn_id=CONN_ONLY_PATH, host="path/to/repo", conn_type="git", - extra={"key_file": "path/to/key"}, ) ) db.merge_conn( @@ -212,11 +211,11 @@ def test_given_both_private_key_and_key_file(self): GitHook(git_conn_id=CONN_BOTH_PATH_INLINE) def test_key_file_git_hook_has_env(self): - hook = GitHook(git_conn_id=CONN_ONLY_PATH) + hook = GitHook(git_conn_id=CONN_DEFAULT) assert hasattr(hook, "env") assert hook.env == { - "GIT_SSH_COMMAND": "ssh -i path/to/key -o IdentitiesOnly=yes -o StrictHostKeyChecking=no" + "GIT_SSH_COMMAND": "ssh -i /files/pkey.pem -o IdentitiesOnly=yes -o StrictHostKeyChecking=no" } def test_private_key_lazy_env_var(self):