mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
cluster name
This commit is contained in:
parent
87c979b2cf
commit
5fbb199375
@ -23,10 +23,11 @@ def legacy(request):
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def cluster(legacy):
|
||||
name = __file__.removeprefix("test_").removesuffix(".py")
|
||||
suffix = "legacy" if legacy else "new"
|
||||
return ClickHouseCluster(f"{name}_{suffix}")
|
||||
def cluster(secure_connection, legacy):
|
||||
cluster_name = __file__.removeprefix("test_").removesuffix(".py")
|
||||
cluster_name += "_legacy" if legacy else "_new"
|
||||
cluster_name += "_secure" if secure_connection else "_insecure"
|
||||
return ClickHouseCluster(cluster_name)
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
|
Loading…
Reference in New Issue
Block a user