Skip to content

Link more tests to testcases #14796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ydb/tests/olap/test_quota_exhaustion.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import ydb
from ydb.tests.library.harness.kikimr_config import KikimrConfigGenerator
from ydb.tests.library.harness.kikimr_runner import KiKiMR
from ydb.tests.library.test_meta import link_test_case

ROWS_CHUNK_SIZE = 3000000
ROWS_CHUNKS_COUNT = 100000
Expand All @@ -22,9 +23,8 @@ def setup_class(cls):
def teardown_class(cls):
cls.cluster.stop()

@link_test_case("#13529")
def test(self):
"""As per https://github.com/ydb-platform/ydb/issues/13529"""

driver = ydb.Driver(endpoint=f'grpc://localhost:{self.cluster.nodes[1].grpc_port}', database='/Root')
session = ydb.QuerySessionPool(driver)
driver.wait(5, fail_fast=True)
Expand Down
6 changes: 4 additions & 2 deletions ydb/tests/olap/ttl_tiering/ttl_delete_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import logging
from .base import TllTieringTestBase, ColumnTableHelper

from ydb.tests.library.test_meta import link_test_case

logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -36,8 +38,8 @@ def portions_actualized_in_sys(self, table):
def get_row_count_by_date(self, table_path: str, past_days: int) -> int:
return self.ydb_client.query(f"SELECT count(*) as Rows from `{table_path}` WHERE ts < CurrentUtcTimestamp() - DateTime::IntervalFromDays({past_days})")[0].rows[0]["Rows"]

@link_test_case("#13542")
def test_data_unchanged_after_ttl_change(self):
''' Implements https://github.com/ydb-platform/ydb/issues/13542 '''
self.row_count = 100000
single_upsert_row_count = 10000
test_name = 'test_data_unchanged_after_ttl_change'
Expand Down Expand Up @@ -214,8 +216,8 @@ def data_deleted_from_buckets():

change_ttl_and_check(self.days_to_cool, days_to_medium, self.days_to_freeze)

@link_test_case("#13467")
def test_ttl_delete(self):
''' Implements https://github.com/ydb-platform/ydb/issues/13467 '''
test_dir = f"{self.ydb_client.database}/{self.test_name}"
table_path = f"{test_dir}/table"
secret_prefix = self.test_name
Expand Down
4 changes: 3 additions & 1 deletion ydb/tests/olap/ttl_tiering/ttl_unavailable_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@

from .base import TllTieringTestBase, ColumnTableHelper

from ydb.tests.library.test_meta import link_test_case

logger = logging.getLogger(__name__)

ROWS_CHUNK_SIZE = 1000000
ROWS_CHUNKS_COUNT = 10


class TestUnavailableS3(TllTieringTestBase):
@link_test_case("#13545")
def test(self):
"""As per https://github.com/ydb-platform/ydb/issues/13545"""
bucket_s3_name = "cold"
bucket_db_path = f"{self.ydb_client.database}/buckets/{bucket_s3_name}"

Expand Down
4 changes: 3 additions & 1 deletion ydb/tests/olap/ttl_tiering/unstable_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import threading
import subprocess

from ydb.tests.library.test_meta import link_test_case

logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -73,8 +75,8 @@ def stopwatch(self, seconds: int, stop_event):
time.sleep(seconds)
stop_event.set()

@link_test_case("#13544")
def test(self):
''' Implements https://github.com/ydb-platform/ydb/issues/13544'''
test_dir = f"{self.ydb_client.database}/{self.test_name}"
table_path = f"{test_dir}/table"
secret_prefix = self.test_name
Expand Down
3 changes: 2 additions & 1 deletion ydb/tests/olap/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ PY3TEST()
)

PEERDIR(
ydb/tests/library
ydb/tests/library
ydb/tests/library/test_meta
)
END()

Expand Down
Loading