Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jx2lee committed Jan 29, 2025
1 parent b162b20 commit 1fe9426
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/dag_processing/test_dag_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -413,6 +414,10 @@ def test_repo_url_validation_for_ssh(self, mock_hook, repo_url, session):
"[email protected]: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")
Expand Down

0 comments on commit 1fe9426

Please sign in to comment.