mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 04:32:33 +00:00
32 lines
726 B
Python
32 lines
726 B
Python
|
import pytest
|
||
|
import os
|
||
|
from helpers.cluster import ClickHouseCluster
|
||
|
|
||
|
cluster = ClickHouseCluster(__file__)
|
||
|
node = cluster.add_instance("node", main_configs=["configs/config.xml"])
|
||
|
|
||
|
|
||
|
@pytest.fixture(scope="module")
|
||
|
def started_cluster():
|
||
|
try:
|
||
|
cluster.start()
|
||
|
yield cluster
|
||
|
|
||
|
finally:
|
||
|
cluster.shutdown()
|
||
|
|
||
|
|
||
|
def test_successful_decryption(started_cluster):
|
||
|
assert (
|
||
|
node.query(
|
||
|
"select value from system.server_settings where name ='max_table_size_to_drop'"
|
||
|
)
|
||
|
== "60000000000\n"
|
||
|
)
|
||
|
assert (
|
||
|
node.query(
|
||
|
"select value from system.server_settings where name ='max_partition_size_to_drop'"
|
||
|
)
|
||
|
== "40000000000\n"
|
||
|
)
|