ClickHouse/tests/integration/test_keeper_secure_client/test.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
893 B
Python
Raw Normal View History

#!/usr/bin/env python3
import os
2024-09-27 10:19:39 +00:00
import string
import time
2024-09-27 10:19:39 +00:00
import pytest
from helpers.cluster import ClickHouseCluster
cluster = ClickHouseCluster(__file__)
node1 = cluster.add_instance(
"node1",
main_configs=[
"configs/enable_secure_keeper.xml",
"configs/ssl_conf.xml",
"configs/dhparam.pem",
"configs/server.crt",
"configs/server.key",
],
)
node2 = cluster.add_instance(
"node2",
main_configs=[
"configs/use_secure_keeper.xml",
"configs/ssl_conf.xml",
"configs/server.crt",
"configs/server.key",
],
)
@pytest.fixture(scope="module")
def started_cluster():
try:
cluster.start()
yield cluster
finally:
cluster.shutdown()
def test_connection(started_cluster):
# just nothrow
2022-09-06 10:58:14 +00:00
node2.query_with_retry("SELECT * FROM system.zookeeper WHERE path = '/'")