ClickHouse/tests/integration/test_startup_scripts/test.py
2024-06-21 12:10:49 -04:00

22 lines
469 B
Python

from helpers.cluster import ClickHouseCluster
def test_startup_scripts():
cluster = ClickHouseCluster(__file__)
node = cluster.add_instance(
"node",
main_configs=[
"configs/config.d/query_log.xml",
"configs/config.d/startup_scripts.xml",
],
with_zookeeper=False,
)
try:
cluster.start()
assert node.query("SHOW TABLES") == "TestTable\n"
finally:
cluster.shutdown()