File tree Expand file tree Collapse file tree 3 files changed +58
-0
lines changed
ydb/tests/workloads/olap_workload Expand file tree Collapse file tree 3 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+ import yatest
3+
4+ from ydb .tests .library .harness .kikimr_runner import KiKiMR
5+ from ydb .tests .library .harness .kikimr_config import KikimrConfigGenerator
6+ from ydb .tests .library .common .types import Erasure
7+
8+
9+ class TestYdbWorkload (object ):
10+ @classmethod
11+ def setup_class (cls ):
12+ cls .cluster = KiKiMR (KikimrConfigGenerator (erasure = Erasure .MIRROR_3_DC ))
13+ cls .cluster .start ()
14+
15+ @classmethod
16+ def teardown_class (cls ):
17+ cls .cluster .stop ()
18+
19+ def test (self ):
20+ workload_path = yatest .common .build_path ("ydb/tests/workloads/olap_workload/olap_workload" )
21+ yatest .common .execute (
22+ [
23+ workload_path ,
24+ "--endpoint" , f"grpc://localhost:{ self .cluster .nodes [1 ].grpc_port } " ,
25+ "--database=/Root" ,
26+ "--duration" , "120" ,
27+ ],
28+ wait = True
29+ )
Original file line number Diff line number Diff line change 1+ PY3TEST()
2+ ENV(YDB_DRIVER_BINARY ="ydb/apps/ydbd/ydbd")
3+
4+ TEST_SRCS(
5+ test_workload.py
6+ )
7+
8+ IF (SANITIZER_TYPE)
9+ REQUIREMENTS(ram :32)
10+ ENDIF()
11+
12+ SIZE(MEDIUM)
13+
14+ DEPENDS(
15+ ydb/apps/ydbd
16+ ydb/apps/ydb
17+ ydb/tests/workloads/olap_workload
18+ )
19+
20+ PEERDIR(
21+ ydb/tests/library
22+ )
23+
24+
25+ END()
Original file line number Diff line number Diff line change @@ -11,3 +11,7 @@ PEERDIR(
1111)
1212
1313END()
14+
15+ RECURSE_FOR_TESTS(
16+ tests
17+ )
You can’t perform that action at this time.
0 commit comments