From 0f6a1510acce68feb5cfd29384c986be3261bd19 Mon Sep 17 00:00:00 2001 From: MikhailBurdukov Date: Fri, 9 Feb 2024 10:02:55 +0000 Subject: [PATCH] fix --- tests/features/chadmin_zookeeper.feature | 2 +- tests/steps/clickhouse.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/features/chadmin_zookeeper.feature b/tests/features/chadmin_zookeeper.feature index 7a7931f3..0f3c37f1 100644 --- a/tests/features/chadmin_zookeeper.feature +++ b/tests/features/chadmin_zookeeper.feature @@ -124,6 +124,6 @@ Feature: chadmin zookeeper commands. """ CREATE TABLE test_db.test ON CLUSTER 'cluster_with_removed_host' (a int) ENGINE=MergeTree() ORDER BY a """ - + And we do hosts cleanup on clickhouse02 with fqdn zone-host.db.asd.net Then there are no unfinished dll queries on clickhouse02 diff --git a/tests/steps/clickhouse.py b/tests/steps/clickhouse.py index 5b984861..dd02882d 100644 --- a/tests/steps/clickhouse.py +++ b/tests/steps/clickhouse.py @@ -76,11 +76,11 @@ def step_put_config(context, path, node): config = context.text container = get_container(context, node) result = container.exec_run( - ["bash", "-c", "echo", "-e", '"', config, '"', ">", path], user="root" + ["bash", "-c", f'echo -e " {config} " > {path}'], user="root" ) assert_that(result.exit_code, equal_to(0)) result = container.exec_run( - ["bash", "-c", "supervisorctl", "restart", "clickhouse-server"], user="root" + ["bash", "-c", "supervisorctl restart clickhouse-server"], user="root" ) assert_that(result.exit_code, equal_to(0))