diff options
author | Grigorii Papashvili <papashviliga@ydb.tech> | 2024-07-08 12:53:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-08 12:53:46 +0300 |
commit | 85e21859ae109b823dd94a35edba7ee1edddd073 (patch) | |
tree | 47928ecf2b7d71599adbbb257b339a36878a9882 | |
parent | 8ccdffdeede630040938ce7d0130f34d2a089dfe (diff) | |
download | ydb-85e21859ae109b823dd94a35edba7ee1edddd073.tar.gz |
YDB FQ: Enabling YDB test for missing table (#6395)
-rw-r--r-- | ydb/library/yql/providers/generic/connector/tests/datasource/ydb/test.py | 34 | ||||
-rw-r--r-- | ydb/library/yql/providers/generic/connector/tests/utils/database.py | 2 |
2 files changed, 18 insertions, 18 deletions
diff --git a/ydb/library/yql/providers/generic/connector/tests/datasource/ydb/test.py b/ydb/library/yql/providers/generic/connector/tests/datasource/ydb/test.py index de4fcb6d91..63c4d2069b 100644 --- a/ydb/library/yql/providers/generic/connector/tests/datasource/ydb/test.py +++ b/ydb/library/yql/providers/generic/connector/tests/datasource/ydb/test.py @@ -14,7 +14,7 @@ import ydb.library.yql.providers.generic.connector.tests.utils.scenario.ydb as s import ydb.library.yql.providers.generic.connector.tests.common_test_cases.select_positive_common as select_positive_common # import ydb.library.yql.providers.generic.connector.tests.common_test_cases.select_missing_database as select_missing_database -# import ydb.library.yql.providers.generic.connector.tests.common_test_cases.select_missing_table as select_missing_table +import ydb.library.yql.providers.generic.connector.tests.common_test_cases.select_missing_table as select_missing_table from conftest import docker_compose_dir from collection import Collection @@ -96,19 +96,19 @@ def test_select_positive( # FIXME: YQ-3315 -# @pytest.mark.parametrize("runner_type", runner_types) -# @pytest.mark.parametrize( -# "test_case", tc_collection.get('select_missing_table'), ids=tc_collection.ids('select_missing_table') -# ) -# def test_select_missing_table( -# request: pytest.FixtureRequest, -# runner_type: str, -# test_case: select_missing_table.TestCase, -# ): -# runner = configure_runner(runner_type=runner_type, settings=settings) -# scenario.select_missing_table( -# test_name=request.node.name, -# settings=settings, -# runner=runner, -# test_case=test_case, -# ) +@pytest.mark.parametrize("runner_type", runner_types) +@pytest.mark.parametrize( + "test_case", tc_collection.get('select_missing_table'), ids=tc_collection.ids('select_missing_table') +) +def test_select_missing_table( + request: pytest.FixtureRequest, + runner_type: str, + test_case: select_missing_table.TestCase, +): + runner = configure_runner(runner_type=runner_type, settings=settings) + scenario.select_missing_table( + test_name=request.node.name, + settings=settings, + runner=runner, + test_case=test_case, + ) diff --git a/ydb/library/yql/providers/generic/connector/tests/utils/database.py b/ydb/library/yql/providers/generic/connector/tests/utils/database.py index cfce3f58c6..a6622ea99c 100644 --- a/ydb/library/yql/providers/generic/connector/tests/utils/database.py +++ b/ydb/library/yql/providers/generic/connector/tests/utils/database.py @@ -59,7 +59,7 @@ class Database: case EDataSourceKind.POSTGRESQL: return 'table does not exist' case EDataSourceKind.YDB: - raise Exception("Fix me first in YQ-3315") + return 'issues = [{\'Path not found\'}])' case _: raise Exception(f'invalid data source: {self.kind}') |