mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Refactor test_throttling slightly for upcoming tests
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
79de5c16c9
commit
6ed9b53d1f
@ -34,8 +34,8 @@ node = cluster.add_instance(
|
||||
"node",
|
||||
stay_alive=True,
|
||||
main_configs=[
|
||||
"configs/server_backups.xml",
|
||||
"configs/server_overrides.xml",
|
||||
"configs/static_overrides.xml",
|
||||
"configs/dynamic_overrides.xml",
|
||||
"configs/ssl.xml",
|
||||
],
|
||||
user_configs=[
|
||||
@ -64,7 +64,7 @@ def revert_config():
|
||||
[
|
||||
"bash",
|
||||
"-c",
|
||||
f"echo '<clickhouse></clickhouse>' > /etc/clickhouse-server/config.d/server_overrides.xml",
|
||||
f"echo '<clickhouse></clickhouse>' > /etc/clickhouse-server/config.d/dynamic_overrides.xml",
|
||||
]
|
||||
)
|
||||
node.exec_in_container(
|
||||
@ -96,7 +96,7 @@ def node_update_config(mode, setting, value=None):
|
||||
if mode is None:
|
||||
return
|
||||
if mode == "server":
|
||||
config_path = "/etc/clickhouse-server/config.d/server_overrides.xml"
|
||||
config_path = "/etc/clickhouse-server/config.d/dynamic_overrides.xml"
|
||||
config_content = f"""
|
||||
<clickhouse><{setting}>{value}</{setting}></clickhouse>
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user