Skip to content

Commit 81fbe15

Browse files
authored
Link more tests to testcases (#14796)
1 parent f45a2f5 commit 81fbe15

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

ydb/tests/olap/test_quota_exhaustion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import ydb
44
from ydb.tests.library.harness.kikimr_config import KikimrConfigGenerator
55
from ydb.tests.library.harness.kikimr_runner import KiKiMR
6+
from ydb.tests.library.test_meta import link_test_case
67

78
ROWS_CHUNK_SIZE = 3000000
89
ROWS_CHUNKS_COUNT = 100000
@@ -22,9 +23,8 @@ def setup_class(cls):
2223
def teardown_class(cls):
2324
cls.cluster.stop()
2425

26+
@link_test_case("#13529")
2527
def test(self):
26-
"""As per https://github.com/ydb-platform/ydb/issues/13529"""
27-
2828
driver = ydb.Driver(endpoint=f'grpc://localhost:{self.cluster.nodes[1].grpc_port}', database='/Root')
2929
session = ydb.QuerySessionPool(driver)
3030
driver.wait(5, fail_fast=True)

ydb/tests/olap/ttl_tiering/ttl_delete_s3.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import logging
33
from .base import TllTieringTestBase, ColumnTableHelper
44

5+
from ydb.tests.library.test_meta import link_test_case
6+
57
logger = logging.getLogger(__name__)
68

79

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

41+
@link_test_case("#13542")
3942
def test_data_unchanged_after_ttl_change(self):
40-
''' Implements https://github.com/ydb-platform/ydb/issues/13542 '''
4143
self.row_count = 100000
4244
single_upsert_row_count = 10000
4345
test_name = 'test_data_unchanged_after_ttl_change'
@@ -214,8 +216,8 @@ def data_deleted_from_buckets():
214216

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

219+
@link_test_case("#13467")
217220
def test_ttl_delete(self):
218-
''' Implements https://github.com/ydb-platform/ydb/issues/13467 '''
219221
test_dir = f"{self.ydb_client.database}/{self.test_name}"
220222
table_path = f"{test_dir}/table"
221223
secret_prefix = self.test_name

ydb/tests/olap/ttl_tiering/ttl_unavailable_s3.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66

77
from .base import TllTieringTestBase, ColumnTableHelper
88

9+
from ydb.tests.library.test_meta import link_test_case
10+
911
logger = logging.getLogger(__name__)
1012

1113
ROWS_CHUNK_SIZE = 1000000
1214
ROWS_CHUNKS_COUNT = 10
1315

1416

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

ydb/tests/olap/ttl_tiering/unstable_connection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import threading
99
import subprocess
1010

11+
from ydb.tests.library.test_meta import link_test_case
12+
1113
logger = logging.getLogger(__name__)
1214

1315

@@ -73,8 +75,8 @@ def stopwatch(self, seconds: int, stop_event):
7375
time.sleep(seconds)
7476
stop_event.set()
7577

78+
@link_test_case("#13544")
7679
def test(self):
77-
''' Implements https://github.com/ydb-platform/ydb/issues/13544'''
7880
test_dir = f"{self.ydb_client.database}/{self.test_name}"
7981
table_path = f"{test_dir}/table"
8082
secret_prefix = self.test_name

ydb/tests/olap/ya.make

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ PY3TEST()
1919
)
2020

2121
PEERDIR(
22-
ydb/tests/library
22+
ydb/tests/library
23+
ydb/tests/library/test_meta
2324
)
2425
END()
2526

0 commit comments

Comments
 (0)