From 1fe9426ce34cac68f919e3fff335fa08b4877fa8 Mon Sep 17 00:00:00 2001 From: jx2lee Date: Wed, 29 Jan 2025 14:41:46 +0900 Subject: [PATCH] test --- tests/dag_processing/test_dag_bundles.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/dag_processing/test_dag_bundles.py b/tests/dag_processing/test_dag_bundles.py index 63572bb5eb6d8..331a215df7da7 100644 --- a/tests/dag_processing/test_dag_bundles.py +++ b/tests/dag_processing/test_dag_bundles.py @@ -399,7 +399,8 @@ def test_repo_url_validation_for_ssh(self, mock_hook, repo_url, session): tracking_ref=GIT_DEFAULT_BRANCH, ) with pytest.raises( - AirflowException, match=f"Invalid git URL: {repo_url}. URL must start with git@ and end with .git" + AirflowException, + match=f"Invalid git URL: {repo_url}. URL must start with git@ or https and end with .git", ): bundle.initialize() @@ -413,6 +414,10 @@ def test_repo_url_validation_for_ssh(self, mock_hook, repo_url, session): "git@myorg.github.com:apache/airflow.git", "https://myorg.github.com/apache/airflow/tree/0f0f0f", ), + ( + "https://myorg.github.com/apache/airflow.git", + "https://myorg.github.com/apache/airflow/tree/0f0f0f", + ), ], ) @mock.patch("airflow.dag_processing.bundles.git.Repo")