mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
28 lines
658 B
Python
28 lines
658 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"
|
|
assert (
|
|
node.query(
|
|
"SELECT value, changed FROM system.settings WHERE name = 'skip_unavailable_shards'"
|
|
)
|
|
== "0\t0\n"
|
|
)
|
|
|
|
finally:
|
|
cluster.shutdown()
|