This is an automated email from the ASF dual-hosted git repository.

potiuk 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 58b06724ca Disable db isolation tests for api_connexion tests (#41130)
58b06724ca is described below

commit 58b06724cabaf1727fa5b159b6947a7fc57dc1a6
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Jul 30 22:09:27 2024 +0200

    Disable db isolation tests for api_connexion tests (#41130)
    
    Those tests should not be run for db isolation tests at all
    
    Related: #41067
---
 tests/api_connexion/endpoints/test_dag_endpoint.py                  | 2 +-
 tests/api_connexion/endpoints/test_dag_parsing.py                   | 2 +-
 tests/api_connexion/endpoints/test_dag_run_endpoint.py              | 2 +-
 tests/api_connexion/endpoints/test_dag_source_endpoint.py           | 2 +-
 tests/api_connexion/endpoints/test_dag_warning_endpoint.py          | 2 +-
 tests/api_connexion/endpoints/test_dataset_endpoint.py              | 2 +-
 tests/api_connexion/endpoints/test_event_log_endpoint.py            | 2 +-
 tests/api_connexion/endpoints/test_extra_link_endpoint.py           | 2 +-
 tests/api_connexion/endpoints/test_forward_to_fab_endpoint.py       | 2 +-
 tests/api_connexion/endpoints/test_health_endpoint.py               | 2 +-
 tests/api_connexion/endpoints/test_import_error_endpoint.py         | 2 +-
 tests/api_connexion/endpoints/test_log_endpoint.py                  | 2 +-
 tests/api_connexion/endpoints/test_mapped_task_instance_endpoint.py | 2 +-
 tests/api_connexion/endpoints/test_plugin_endpoint.py               | 2 +-
 tests/api_connexion/endpoints/test_pool_endpoint.py                 | 2 +-
 tests/api_connexion/endpoints/test_provider_endpoint.py             | 2 +-
 tests/api_connexion/endpoints/test_task_endpoint.py                 | 2 +-
 tests/api_connexion/endpoints/test_task_instance_endpoint.py        | 2 +-
 tests/api_connexion/endpoints/test_variable_endpoint.py             | 2 +-
 tests/api_connexion/endpoints/test_version_endpoint.py              | 2 +-
 tests/api_connexion/endpoints/test_xcom_endpoint.py                 | 2 +-
 tests/api_connexion/schemas/test_connection_schema.py               | 2 +-
 tests/api_connexion/schemas/test_dag_run_schema.py                  | 2 +-
 tests/api_connexion/schemas/test_dag_schema.py                      | 2 ++
 tests/api_connexion/schemas/test_dataset_schema.py                  | 2 +-
 tests/api_connexion/schemas/test_error_schema.py                    | 2 +-
 tests/api_connexion/schemas/test_event_log_schema.py                | 2 +-
 tests/api_connexion/schemas/test_pool_schemas.py                    | 2 +-
 tests/api_connexion/schemas/test_role_and_permission_schema.py      | 2 +-
 tests/api_connexion/schemas/test_task_instance_schema.py            | 1 +
 tests/api_connexion/schemas/test_xcom_schema.py                     | 2 +-
 tests/api_connexion/test_auth.py                                    | 2 +-
 tests/api_connexion/test_cors.py                                    | 2 +-
 tests/api_connexion/test_error_handling.py                          | 2 +-
 tests/api_connexion/test_security.py                                | 2 +-
 35 files changed, 36 insertions(+), 33 deletions(-)

diff --git a/tests/api_connexion/endpoints/test_dag_endpoint.py 
b/tests/api_connexion/endpoints/test_dag_endpoint.py
index b514faba27..283bc3457c 100644
--- a/tests/api_connexion/endpoints/test_dag_endpoint.py
+++ b/tests/api_connexion/endpoints/test_dag_endpoint.py
@@ -36,7 +36,7 @@ from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_dags, clear_db_runs, 
clear_db_serialized_dags
 from tests.test_utils.www import _check_last_log
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture
diff --git a/tests/api_connexion/endpoints/test_dag_parsing.py 
b/tests/api_connexion/endpoints/test_dag_parsing.py
index 1155e1d884..521d8d9e8c 100644
--- a/tests/api_connexion/endpoints/test_dag_parsing.py
+++ b/tests/api_connexion/endpoints/test_dag_parsing.py
@@ -28,7 +28,7 @@ from airflow.security import permissions
 from tests.test_utils.api_connexion_utils import create_user, delete_user
 from tests.test_utils.db import clear_db_dag_parsing_requests
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 if TYPE_CHECKING:
     from airflow.models.dag import DAG
diff --git a/tests/api_connexion/endpoints/test_dag_run_endpoint.py 
b/tests/api_connexion/endpoints/test_dag_run_endpoint.py
index 1e3fd16383..1e17548b09 100644
--- a/tests/api_connexion/endpoints/test_dag_run_endpoint.py
+++ b/tests/api_connexion/endpoints/test_dag_run_endpoint.py
@@ -40,7 +40,7 @@ from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_dags, clear_db_runs, 
clear_db_serialized_dags
 from tests.test_utils.www import _check_last_log
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")
diff --git a/tests/api_connexion/endpoints/test_dag_source_endpoint.py 
b/tests/api_connexion/endpoints/test_dag_source_endpoint.py
index 14c7d1534d..ee3471b904 100644
--- a/tests/api_connexion/endpoints/test_dag_source_endpoint.py
+++ b/tests/api_connexion/endpoints/test_dag_source_endpoint.py
@@ -27,7 +27,7 @@ from airflow.security import permissions
 from tests.test_utils.api_connexion_utils import assert_401, create_user, 
delete_user
 from tests.test_utils.db import clear_db_dag_code, clear_db_dags, 
clear_db_serialized_dags
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 if TYPE_CHECKING:
     from airflow.models.dag import DAG
diff --git a/tests/api_connexion/endpoints/test_dag_warning_endpoint.py 
b/tests/api_connexion/endpoints/test_dag_warning_endpoint.py
index cc398329b9..5e0730ed13 100644
--- a/tests/api_connexion/endpoints/test_dag_warning_endpoint.py
+++ b/tests/api_connexion/endpoints/test_dag_warning_endpoint.py
@@ -27,7 +27,7 @@ from airflow.utils.session import create_session
 from tests.test_utils.api_connexion_utils import assert_401, create_user, 
delete_user
 from tests.test_utils.db import clear_db_dag_warnings, clear_db_dags
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")
diff --git a/tests/api_connexion/endpoints/test_dataset_endpoint.py 
b/tests/api_connexion/endpoints/test_dataset_endpoint.py
index fa278a92d6..fb94b0ad9f 100644
--- a/tests/api_connexion/endpoints/test_dataset_endpoint.py
+++ b/tests/api_connexion/endpoints/test_dataset_endpoint.py
@@ -43,7 +43,7 @@ from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_datasets, clear_db_runs
 from tests.test_utils.www import _check_last_log
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")
diff --git a/tests/api_connexion/endpoints/test_event_log_endpoint.py 
b/tests/api_connexion/endpoints/test_event_log_endpoint.py
index bd910c94a2..e6f4d23cea 100644
--- a/tests/api_connexion/endpoints/test_event_log_endpoint.py
+++ b/tests/api_connexion/endpoints/test_event_log_endpoint.py
@@ -26,7 +26,7 @@ from tests.test_utils.api_connexion_utils import assert_401, 
create_user, delete
 from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_logs
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")
diff --git a/tests/api_connexion/endpoints/test_extra_link_endpoint.py 
b/tests/api_connexion/endpoints/test_extra_link_endpoint.py
index 9f75699b14..098b3108dc 100644
--- a/tests/api_connexion/endpoints/test_extra_link_endpoint.py
+++ b/tests/api_connexion/endpoints/test_extra_link_endpoint.py
@@ -37,7 +37,7 @@ from tests.test_utils.db import clear_db_runs, clear_db_xcom
 from tests.test_utils.mock_operators import CustomOperator
 from tests.test_utils.mock_plugins import mock_plugin_manager
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")
diff --git a/tests/api_connexion/endpoints/test_forward_to_fab_endpoint.py 
b/tests/api_connexion/endpoints/test_forward_to_fab_endpoint.py
index a9f2d9ceb4..292f026cfa 100644
--- a/tests/api_connexion/endpoints/test_forward_to_fab_endpoint.py
+++ b/tests/api_connexion/endpoints/test_forward_to_fab_endpoint.py
@@ -28,7 +28,7 @@ from airflow.utils.session import create_session
 from airflow.www.security import EXISTING_ROLES
 from tests.test_utils.api_connexion_utils import create_role, create_user, 
delete_role, delete_user
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 DEFAULT_TIME = "2020-06-11T18:00:00+00:00"
 
diff --git a/tests/api_connexion/endpoints/test_health_endpoint.py 
b/tests/api_connexion/endpoints/test_health_endpoint.py
index 7d73b338e5..04b00fbf26 100644
--- a/tests/api_connexion/endpoints/test_health_endpoint.py
+++ b/tests/api_connexion/endpoints/test_health_endpoint.py
@@ -30,7 +30,7 @@ from airflow.utils.state import State
 HEALTHY = "healthy"
 UNHEALTHY = "unhealthy"
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestHealthTestBase:
diff --git a/tests/api_connexion/endpoints/test_import_error_endpoint.py 
b/tests/api_connexion/endpoints/test_import_error_endpoint.py
index 4549b74ae9..4483646ce5 100644
--- a/tests/api_connexion/endpoints/test_import_error_endpoint.py
+++ b/tests/api_connexion/endpoints/test_import_error_endpoint.py
@@ -30,7 +30,7 @@ from tests.test_utils.compat import ParseImportError
 from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_dags, clear_db_import_errors
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 TEST_DAG_IDS = ["test_dag", "test_dag2"]
 
diff --git a/tests/api_connexion/endpoints/test_log_endpoint.py 
b/tests/api_connexion/endpoints/test_log_endpoint.py
index 8c3b73ebc3..19390d7f46 100644
--- a/tests/api_connexion/endpoints/test_log_endpoint.py
+++ b/tests/api_connexion/endpoints/test_log_endpoint.py
@@ -36,7 +36,7 @@ from airflow.utils.types import DagRunType
 from tests.test_utils.api_connexion_utils import assert_401, create_user, 
delete_user
 from tests.test_utils.db import clear_db_runs
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")
diff --git 
a/tests/api_connexion/endpoints/test_mapped_task_instance_endpoint.py 
b/tests/api_connexion/endpoints/test_mapped_task_instance_endpoint.py
index 78054f379e..72cdccdee6 100644
--- a/tests/api_connexion/endpoints/test_mapped_task_instance_endpoint.py
+++ b/tests/api_connexion/endpoints/test_mapped_task_instance_endpoint.py
@@ -37,7 +37,7 @@ from tests.test_utils.api_connexion_utils import assert_401, 
create_user, delete
 from tests.test_utils.db import clear_db_runs, clear_db_sla_miss, 
clear_rendered_ti_fields
 from tests.test_utils.mock_operators import MockOperator
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 DEFAULT_DATETIME_1 = datetime(2020, 1, 1)
 DEFAULT_DATETIME_STR_1 = "2020-01-01T00:00:00+00:00"
diff --git a/tests/api_connexion/endpoints/test_plugin_endpoint.py 
b/tests/api_connexion/endpoints/test_plugin_endpoint.py
index 0206c1ff0f..edf925cf0f 100644
--- a/tests/api_connexion/endpoints/test_plugin_endpoint.py
+++ b/tests/api_connexion/endpoints/test_plugin_endpoint.py
@@ -33,7 +33,7 @@ from tests.test_utils.compat import BaseOperatorLink
 from tests.test_utils.config import conf_vars
 from tests.test_utils.mock_plugins import mock_plugin_manager
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class PluginHook(BaseHook): ...
diff --git a/tests/api_connexion/endpoints/test_pool_endpoint.py 
b/tests/api_connexion/endpoints/test_pool_endpoint.py
index f709bda9a1..87439a5811 100644
--- a/tests/api_connexion/endpoints/test_pool_endpoint.py
+++ b/tests/api_connexion/endpoints/test_pool_endpoint.py
@@ -27,7 +27,7 @@ from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_pools
 from tests.test_utils.www import _check_last_log
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")
diff --git a/tests/api_connexion/endpoints/test_provider_endpoint.py 
b/tests/api_connexion/endpoints/test_provider_endpoint.py
index 7c973a9bb4..16e5989cc5 100644
--- a/tests/api_connexion/endpoints/test_provider_endpoint.py
+++ b/tests/api_connexion/endpoints/test_provider_endpoint.py
@@ -24,7 +24,7 @@ from airflow.providers_manager import ProviderInfo
 from airflow.security import permissions
 from tests.test_utils.api_connexion_utils import create_user, delete_user
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 MOCK_PROVIDERS = {
     "apache-airflow-providers-amazon": ProviderInfo(
diff --git a/tests/api_connexion/endpoints/test_task_endpoint.py 
b/tests/api_connexion/endpoints/test_task_endpoint.py
index defbe066c9..cd3f323a50 100644
--- a/tests/api_connexion/endpoints/test_task_endpoint.py
+++ b/tests/api_connexion/endpoints/test_task_endpoint.py
@@ -31,7 +31,7 @@ from airflow.security import permissions
 from tests.test_utils.api_connexion_utils import assert_401, create_user, 
delete_user
 from tests.test_utils.db import clear_db_dags, clear_db_runs, 
clear_db_serialized_dags
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")
diff --git a/tests/api_connexion/endpoints/test_task_instance_endpoint.py 
b/tests/api_connexion/endpoints/test_task_instance_endpoint.py
index b3e95c33b3..6d04cbf398 100644
--- a/tests/api_connexion/endpoints/test_task_instance_endpoint.py
+++ b/tests/api_connexion/endpoints/test_task_instance_endpoint.py
@@ -41,7 +41,7 @@ from tests.test_utils.api_connexion_utils import assert_401, 
create_user, delete
 from tests.test_utils.db import clear_db_runs, clear_db_sla_miss, 
clear_rendered_ti_fields
 from tests.test_utils.www import _check_last_log
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 DEFAULT_DATETIME_1 = datetime(2020, 1, 1)
 DEFAULT_DATETIME_STR_1 = "2020-01-01T00:00:00+00:00"
diff --git a/tests/api_connexion/endpoints/test_variable_endpoint.py 
b/tests/api_connexion/endpoints/test_variable_endpoint.py
index 0e300b0a8f..81405df08b 100644
--- a/tests/api_connexion/endpoints/test_variable_endpoint.py
+++ b/tests/api_connexion/endpoints/test_variable_endpoint.py
@@ -28,7 +28,7 @@ from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_variables
 from tests.test_utils.www import _check_last_log
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")
diff --git a/tests/api_connexion/endpoints/test_version_endpoint.py 
b/tests/api_connexion/endpoints/test_version_endpoint.py
index 6c21985a73..bbdb0f7301 100644
--- a/tests/api_connexion/endpoints/test_version_endpoint.py
+++ b/tests/api_connexion/endpoints/test_version_endpoint.py
@@ -20,7 +20,7 @@ from unittest import mock
 
 import pytest
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestGetHealthTest:
diff --git a/tests/api_connexion/endpoints/test_xcom_endpoint.py 
b/tests/api_connexion/endpoints/test_xcom_endpoint.py
index 318e97842d..9f2d652500 100644
--- a/tests/api_connexion/endpoints/test_xcom_endpoint.py
+++ b/tests/api_connexion/endpoints/test_xcom_endpoint.py
@@ -35,7 +35,7 @@ from tests.test_utils.api_connexion_utils import assert_401, 
create_user, delete
 from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_dags, clear_db_runs, clear_db_xcom
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class CustomXCom(BaseXCom):
diff --git a/tests/api_connexion/schemas/test_connection_schema.py 
b/tests/api_connexion/schemas/test_connection_schema.py
index be01e403ff..cf614eb3b1 100644
--- a/tests/api_connexion/schemas/test_connection_schema.py
+++ b/tests/api_connexion/schemas/test_connection_schema.py
@@ -32,7 +32,7 @@ from airflow.models import Connection
 from airflow.utils.session import create_session, provide_session
 from tests.test_utils.db import clear_db_connections
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestConnectionCollectionItemSchema:
diff --git a/tests/api_connexion/schemas/test_dag_run_schema.py 
b/tests/api_connexion/schemas/test_dag_run_schema.py
index ce187868c7..2d66f6e71c 100644
--- a/tests/api_connexion/schemas/test_dag_run_schema.py
+++ b/tests/api_connexion/schemas/test_dag_run_schema.py
@@ -35,7 +35,7 @@ DEFAULT_TIME = "2020-06-09T13:59:56.336000+00:00"
 
 SECOND_TIME = "2020-06-10T13:59:56.336000+00:00"
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestDAGRunBase:
diff --git a/tests/api_connexion/schemas/test_dag_schema.py 
b/tests/api_connexion/schemas/test_dag_schema.py
index d6dfeb759a..1e91972d1f 100644
--- a/tests/api_connexion/schemas/test_dag_schema.py
+++ b/tests/api_connexion/schemas/test_dag_schema.py
@@ -153,6 +153,7 @@ def 
test_serialize_test_dag_collection_schema(url_safe_serializer):
     } == schema.dump(instance)
 
 
[email protected]_if_database_isolation_mode
 @pytest.mark.db_test
 def test_serialize_test_dag_detail_schema(url_safe_serializer):
     dag = DAG(
@@ -208,6 +209,7 @@ def 
test_serialize_test_dag_detail_schema(url_safe_serializer):
     assert obj == expected
 
 
[email protected]_if_database_isolation_mode
 @pytest.mark.db_test
 def 
test_serialize_test_dag_with_dataset_schedule_detail_schema(url_safe_serializer):
     dataset1 = Dataset(uri="s3://bucket/obj1")
diff --git a/tests/api_connexion/schemas/test_dataset_schema.py 
b/tests/api_connexion/schemas/test_dataset_schema.py
index 087fb8a840..c07eed2236 100644
--- a/tests/api_connexion/schemas/test_dataset_schema.py
+++ b/tests/api_connexion/schemas/test_dataset_schema.py
@@ -32,7 +32,7 @@ from airflow.models.dataset import DatasetAliasModel, 
DatasetEvent, DatasetModel
 from airflow.operators.empty import EmptyOperator
 from tests.test_utils.db import clear_db_dags, clear_db_datasets
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestDatasetSchemaBase:
diff --git a/tests/api_connexion/schemas/test_error_schema.py 
b/tests/api_connexion/schemas/test_error_schema.py
index 8604bee516..fb5e9ea219 100644
--- a/tests/api_connexion/schemas/test_error_schema.py
+++ b/tests/api_connexion/schemas/test_error_schema.py
@@ -28,7 +28,7 @@ from airflow.utils.session import provide_session
 from tests.test_utils.compat import ParseImportError
 from tests.test_utils.db import clear_db_import_errors
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestErrorSchemaBase:
diff --git a/tests/api_connexion/schemas/test_event_log_schema.py 
b/tests/api_connexion/schemas/test_event_log_schema.py
index d4b1bf2c8e..407ac4140f 100644
--- a/tests/api_connexion/schemas/test_event_log_schema.py
+++ b/tests/api_connexion/schemas/test_event_log_schema.py
@@ -26,7 +26,7 @@ from airflow.api_connexion.schemas.event_log_schema import (
 from airflow.models import Log
 from airflow.utils import timezone
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture
diff --git a/tests/api_connexion/schemas/test_pool_schemas.py 
b/tests/api_connexion/schemas/test_pool_schemas.py
index d3080061e0..110103073a 100644
--- a/tests/api_connexion/schemas/test_pool_schemas.py
+++ b/tests/api_connexion/schemas/test_pool_schemas.py
@@ -23,7 +23,7 @@ from airflow.models.pool import Pool
 from airflow.utils.session import provide_session
 from tests.test_utils.db import clear_db_pools
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestPoolSchema:
diff --git a/tests/api_connexion/schemas/test_role_and_permission_schema.py 
b/tests/api_connexion/schemas/test_role_and_permission_schema.py
index a8a4924216..f2967d5197 100644
--- a/tests/api_connexion/schemas/test_role_and_permission_schema.py
+++ b/tests/api_connexion/schemas/test_role_and_permission_schema.py
@@ -26,7 +26,7 @@ from airflow.api_connexion.schemas.role_and_permission_schema 
import (
 from airflow.security import permissions
 from tests.test_utils.api_connexion_utils import create_role, delete_role
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestRoleCollectionItemSchema:
diff --git a/tests/api_connexion/schemas/test_task_instance_schema.py 
b/tests/api_connexion/schemas/test_task_instance_schema.py
index 0ff10a7737..181e8351d2 100644
--- a/tests/api_connexion/schemas/test_task_instance_schema.py
+++ b/tests/api_connexion/schemas/test_task_instance_schema.py
@@ -33,6 +33,7 @@ from airflow.utils.state import State
 from airflow.utils.timezone import datetime
 
 
[email protected]_if_database_isolation_mode
 @pytest.mark.db_test
 class TestTaskInstanceSchema:
     @pytest.fixture(autouse=True)
diff --git a/tests/api_connexion/schemas/test_xcom_schema.py 
b/tests/api_connexion/schemas/test_xcom_schema.py
index 7a10b7e7a4..e1f97dad05 100644
--- a/tests/api_connexion/schemas/test_xcom_schema.py
+++ b/tests/api_connexion/schemas/test_xcom_schema.py
@@ -32,7 +32,7 @@ from airflow.utils.dates import parse_execution_date
 from airflow.utils.session import create_session
 from tests.test_utils.config import conf_vars
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module", autouse=True)
diff --git a/tests/api_connexion/test_auth.py b/tests/api_connexion/test_auth.py
index 869b69990f..9f78d0c088 100644
--- a/tests/api_connexion/test_auth.py
+++ b/tests/api_connexion/test_auth.py
@@ -26,7 +26,7 @@ from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_pools
 from tests.test_utils.www import client_with_login
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class BaseTestAuth:
diff --git a/tests/api_connexion/test_cors.py b/tests/api_connexion/test_cors.py
index 4dc4950df9..e83cbb4f7d 100644
--- a/tests/api_connexion/test_cors.py
+++ b/tests/api_connexion/test_cors.py
@@ -23,7 +23,7 @@ import pytest
 from tests.test_utils.config import conf_vars
 from tests.test_utils.db import clear_db_pools
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class BaseTestAuth:
diff --git a/tests/api_connexion/test_error_handling.py 
b/tests/api_connexion/test_error_handling.py
index d89515d05b..19312fd86d 100644
--- a/tests/api_connexion/test_error_handling.py
+++ b/tests/api_connexion/test_error_handling.py
@@ -18,7 +18,7 @@ from __future__ import annotations
 
 import pytest
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 def test_incorrect_endpoint_should_return_json(minimal_app_for_api):
diff --git a/tests/api_connexion/test_security.py 
b/tests/api_connexion/test_security.py
index e75eba53e4..13a5dd4e25 100644
--- a/tests/api_connexion/test_security.py
+++ b/tests/api_connexion/test_security.py
@@ -21,7 +21,7 @@ import pytest
 from airflow.security import permissions
 from tests.test_utils.api_connexion_utils import create_user, delete_user
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module")

Reply via email to