diff --git a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dag_versions.py b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dag_versions.py index e3ad0d8bf6441..ba87d6fe8c539 100644 --- a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dag_versions.py +++ b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dag_versions.py @@ -56,7 +56,7 @@ class TestGetDagVersion(TestDagVersionEndpoint): { "bundle_name": "another_bundle_name", "bundle_version": "some_commit_hash", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "ANOTHER_DAG_ID", "id": mock.ANY, @@ -69,7 +69,7 @@ class TestGetDagVersion(TestDagVersionEndpoint): { "bundle_name": "dag_maker", "bundle_version": "some_commit_hash1", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash1/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "dag_with_multiple_versions", "id": mock.ANY, @@ -82,7 +82,7 @@ class TestGetDagVersion(TestDagVersionEndpoint): { "bundle_name": "dag_maker", "bundle_version": "some_commit_hash2", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash2/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "dag_with_multiple_versions", "id": mock.ANY, @@ -95,7 +95,7 @@ class TestGetDagVersion(TestDagVersionEndpoint): { "bundle_name": "dag_maker", "bundle_version": "some_commit_hash3", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash3/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "dag_with_multiple_versions", "id": mock.ANY, @@ -139,7 +139,7 @@ class TestGetDagVersions(TestDagVersionEndpoint): { "bundle_name": "another_bundle_name", "bundle_version": "some_commit_hash", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "ANOTHER_DAG_ID", "id": mock.ANY, @@ -148,7 +148,7 @@ class TestGetDagVersions(TestDagVersionEndpoint): { "bundle_name": "dag_maker", "bundle_version": "some_commit_hash1", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash1/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "dag_with_multiple_versions", "id": mock.ANY, @@ -157,7 +157,7 @@ class TestGetDagVersions(TestDagVersionEndpoint): { "bundle_name": "dag_maker", "bundle_version": "some_commit_hash2", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash2/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "dag_with_multiple_versions", "id": mock.ANY, @@ -166,7 +166,7 @@ class TestGetDagVersions(TestDagVersionEndpoint): { "bundle_name": "dag_maker", "bundle_version": "some_commit_hash3", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash3/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "dag_with_multiple_versions", "id": mock.ANY, @@ -183,7 +183,7 @@ class TestGetDagVersions(TestDagVersionEndpoint): { "bundle_name": "dag_maker", "bundle_version": "some_commit_hash1", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash1/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "dag_with_multiple_versions", "id": mock.ANY, @@ -192,7 +192,7 @@ class TestGetDagVersions(TestDagVersionEndpoint): { "bundle_name": "dag_maker", "bundle_version": "some_commit_hash2", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash2/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "dag_with_multiple_versions", "id": mock.ANY, @@ -201,7 +201,7 @@ class TestGetDagVersions(TestDagVersionEndpoint): { "bundle_name": "dag_maker", "bundle_version": "some_commit_hash3", - "bundle_url": "fakeprotocol://test_host.github.com/tree/some_commit_hash3/dags", + "bundle_url": None, "created_at": mock.ANY, "dag_id": "dag_with_multiple_versions", "id": mock.ANY, diff --git a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_task_instances.py b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_task_instances.py index 562a254c50f51..3211ca33f639f 100644 --- a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_task_instances.py +++ b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_task_instances.py @@ -274,7 +274,7 @@ def test_should_respond_200_with_versions(self, test_client, run_id, expected_ve "dag_id": "dag_with_multiple_versions", "bundle_name": "dag_maker", "bundle_version": f"some_commit_hash{expected_version_number}", - "bundle_url": f"fakeprotocol://test_host.github.com/tree/some_commit_hash{expected_version_number}/dags", + "bundle_url": None, "created_at": mock.ANY, }, } @@ -1961,7 +1961,7 @@ def test_should_respond_200_with_versions(self, test_client, run_id, expected_ve "dag_id": "dag_with_multiple_versions", "bundle_name": "dag_maker", "bundle_version": f"some_commit_hash{expected_version_number}", - "bundle_url": f"fakeprotocol://test_host.github.com/tree/some_commit_hash{expected_version_number}/dags", + "bundle_url": None, "created_at": mock.ANY, }, } @@ -3023,7 +3023,7 @@ def test_should_respond_200_with_versions(self, test_client, run_id, expected_ve "dag_id": "dag_with_multiple_versions", "bundle_name": "dag_maker", "bundle_version": f"some_commit_hash{expected_version_number}", - "bundle_url": f"fakeprotocol://test_host.github.com/tree/some_commit_hash{expected_version_number}/dags", + "bundle_url": None, "created_at": mock.ANY, }, }