2020-06-29 12:55:27 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
|
|
from testflows.core import *
|
|
|
|
|
2020-10-15 20:23:49 +00:00
|
|
|
append_path(sys.path, "..")
|
2020-06-29 12:55:27 +00:00
|
|
|
|
2021-05-07 13:14:40 +00:00
|
|
|
from helpers.common import Pool, join, run_scenario
|
2020-06-29 12:55:27 +00:00
|
|
|
from helpers.argparser import argparser
|
|
|
|
|
2020-09-03 13:53:34 +00:00
|
|
|
@TestModule
|
|
|
|
@Name("ldap")
|
2020-06-29 12:55:27 +00:00
|
|
|
@ArgumentParser(argparser)
|
2020-10-19 22:35:54 +00:00
|
|
|
def regression(self, local, clickhouse_binary_path, parallel=None, stress=None):
|
2020-09-03 13:53:34 +00:00
|
|
|
"""ClickHouse LDAP integration regression module.
|
2020-06-29 12:55:27 +00:00
|
|
|
"""
|
2021-05-07 13:14:40 +00:00
|
|
|
top().terminating = False
|
2020-09-03 13:53:34 +00:00
|
|
|
args = {"local": local, "clickhouse_binary_path": clickhouse_binary_path}
|
2020-06-29 12:55:27 +00:00
|
|
|
|
2021-05-07 13:14:40 +00:00
|
|
|
if stress is not None:
|
|
|
|
self.context.stress = stress
|
|
|
|
if parallel is not None:
|
|
|
|
self.context.parallel = parallel
|
|
|
|
|
|
|
|
tasks = []
|
|
|
|
with Pool(3) as pool:
|
|
|
|
try:
|
|
|
|
run_scenario(pool, tasks, Feature(test=load("ldap.authentication.regression", "regression")), args)
|
|
|
|
run_scenario(pool, tasks, Feature(test=load("ldap.external_user_directory.regression", "regression")), args)
|
|
|
|
run_scenario(pool, tasks, Feature(test=load("ldap.role_mapping.regression", "regression")), args)
|
|
|
|
finally:
|
|
|
|
join(tasks)
|
2020-06-29 12:55:27 +00:00
|
|
|
|
|
|
|
if main():
|
2021-01-18 22:03:31 +00:00
|
|
|
regression()
|