mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
45 lines
1.2 KiB
Python
Executable File
45 lines
1.2 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
import sys
|
|
from testflows.core import *
|
|
|
|
append_path(sys.path, "..")
|
|
|
|
from helpers.cluster import Cluster
|
|
from helpers.argparser import argparser
|
|
from kerberos.requirements.requirements import *
|
|
|
|
xfails = {
|
|
"config/principal and realm specified/:": [(Fail, "https://github.com/ClickHouse/ClickHouse/issues/26197")],
|
|
}
|
|
|
|
|
|
@TestModule
|
|
@Name("kerberos")
|
|
@ArgumentParser(argparser)
|
|
@Requirements(
|
|
RQ_SRS_016_Kerberos("1.0")
|
|
)
|
|
@XFails(xfails)
|
|
def regression(self, local, clickhouse_binary_path, stress=None):
|
|
"""ClickHouse Kerberos authentication test regression module.
|
|
"""
|
|
nodes = {
|
|
"clickhouse": ("clickhouse1", "clickhouse2", "clickhouse3"),
|
|
"kerberos": ("kerberos", ),
|
|
}
|
|
|
|
if stress is not None:
|
|
self.context.stress = stress
|
|
|
|
with Cluster(local, clickhouse_binary_path, nodes=nodes,
|
|
docker_compose_project_dir=os.path.join(current_dir(), "kerberos_env")) as cluster:
|
|
self.context.cluster = cluster
|
|
|
|
Feature(run=load("kerberos.tests.generic", "generic"), flags=TE)
|
|
Feature(run=load("kerberos.tests.config", "config"), flags=TE)
|
|
Feature(run=load("kerberos.tests.parallel", "parallel"), flags=TE)
|
|
|
|
if main():
|
|
regression()
|