Skip to content

Commit a6b0842

Browse files
committed
can launch test now
1 parent 6ece440 commit a6b0842

File tree

2 files changed

+28
-18
lines changed

2 files changed

+28
-18
lines changed

ydb/tests/olap/restarts/test_nodes_restart.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from ydb.tests.library.common.types import Erasure
88
import yatest.common
99

10+
from ydb.tests.library.common.types import Erasure
1011
from ydb.tests.library.harness.util import LogLevels
1112
from ydb.tests.library.harness.kikimr_config import KikimrConfigGenerator
1213
from ydb.tests.library.harness.kikimr_runner import KiKiMR
@@ -17,11 +18,12 @@
1718

1819
logger = logging.getLogger(__name__)
1920

20-
class RestartNodesTest(object):
21+
class TestRestartNodes(object):
2122
@classmethod
2223
def setup_class(cls):
23-
nodes_count = 8 if cls.erasure == Erasure.BLOCK_4_2 else 9
24-
configurator = KikimrConfigGenerator(cls.erasure,
24+
# nodes_count = 8 if cls.erasure == Erasure.BLOCK_4_2 else 9
25+
nodes_count = 8
26+
configurator = KikimrConfigGenerator(None,
2527
nodes=nodes_count,
2628
use_in_memory_pdisks=False,
2729
additional_log_configs={'CMS': LogLevels.DEBUG},
@@ -95,7 +97,7 @@ def test(self):
9597
threads: list[TestThread] = []
9698
# threads.append(TestThread(target=ydb_workload.bulk_upsert, args=[wait_time, 10, 1000, True]))
9799
for i in range(10):
98-
thread.append(TestThread(target=self.create_table, args=[i]))
100+
threads.append(TestThread(target=self.create_table, args=[i]))
99101

100102
for thread in threads:
101103
thread.start()
@@ -104,6 +106,8 @@ def test(self):
104106

105107
for node in self.cluster.nodes:
106108
node.stop()
109+
# киляются с killom.
110+
# тут уточнить, как это делать.
107111

108112
for node in self.cluster.nodes:
109113
node.start()

ydb/tests/olap/restarts/ya.make

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
PY3TEST()
2+
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd")
23

3-
TEST_SRCS(
4-
test_nodes_restart.py
5-
)
4+
DEPENDS(
5+
ydb/apps/ydb
6+
ydb/apps/ydbd
7+
)
68

7-
SIZE(MEDIUM)
9+
TEST_SRCS(
10+
test_nodes_restart.py
11+
)
812

9-
PEERDIR(
10-
ydb/tests/library
11-
ydb/tests/library/test_meta
12-
ydb/public/sdk/python
13-
ydb/public/sdk/python/enable_v3_new_behavior
14-
contrib/python/boto3
15-
library/recipes/common
16-
ydb/tests/olap/common
17-
ydb/tests/olap/helpers
18-
)
13+
SIZE(MEDIUM)
14+
15+
PEERDIR(
16+
ydb/tests/library
17+
ydb/tests/library/test_meta
18+
ydb/public/sdk/python
19+
ydb/public/sdk/python/enable_v3_new_behavior
20+
contrib/python/boto3
21+
library/recipes/common
22+
ydb/tests/olap/common
23+
ydb/tests/olap/helpers
24+
)
1925

2026
END()

0 commit comments

Comments
 (0)