Skip to content

Commit

Permalink
add column for simple_queue workload (ydb-platform#13263)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximyurchuk authored Jan 15, 2025
1 parent 834b057 commit 71c60ed
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions ydb/tests/workloads/simple_queue/tests/test_workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,28 @@
class TestYdbWorkload(object):
@classmethod
def setup_class(cls):
cls.cluster = KiKiMR(KikimrConfigGenerator(erasure=Erasure.MIRROR_3_DC))
config_generator = KikimrConfigGenerator(erasure=Erasure.MIRROR_3_DC)
config_generator.yaml_config["table_service_config"]["allow_olap_data_query"] = True
cls.cluster = KiKiMR(config_generator)
cls.cluster.start()
workload_path = yatest.common.build_path("ydb/tests/workloads/simple_queue/simple_queue")
cls.workload_command_prefix = [
workload_path,
"--endpoint", "grpc://localhost:%d" % cls.cluster.nodes[1].grpc_port,
"--database=/Root",
"--duration", "60",
]

@classmethod
def teardown_class(cls):
cls.cluster.stop()

def test(self):
workload_path = yatest.common.build_path("ydb/tests/workloads/simple_queue/simple_queue")
store = "row" # or "column"
yatest.common.execute(
[
workload_path,
"--endpoint", "grpc://localhost:%d" % self.cluster.nodes[1].grpc_port,
"--database=/Root",
"--duration", "60",
"--mode", store,
],
wait=True
)
def test_row(self):
command = self.workload_command_prefix
command.extend(["--mode", "row"])
yatest.common.execute(command, wait=True)

def test_column(self):
command = self.workload_command_prefix
command.extend(["--mode", "column"])
yatest.common.execute(command, wait=True)

0 comments on commit 71c60ed

Please sign in to comment.