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
|
|
|
|
|
|
|
from helpers.argparser import argparser
|
|
|
|
|
2022-03-22 16:39:58 +00:00
|
|
|
|
2020-09-03 13:53:34 +00:00
|
|
|
@TestModule
|
|
|
|
@Name("ldap")
|
2020-06-29 12:55:27 +00:00
|
|
|
@ArgumentParser(argparser)
|
2022-03-22 16:39:58 +00:00
|
|
|
def regression(
|
|
|
|
self, local, clickhouse_binary_path, clickhouse_version=None, stress=None
|
|
|
|
):
|
|
|
|
"""ClickHouse LDAP integration regression module."""
|
|
|
|
args = {
|
|
|
|
"local": local,
|
|
|
|
"clickhouse_binary_path": clickhouse_binary_path,
|
|
|
|
"clickhouse_version": clickhouse_version,
|
|
|
|
}
|
2022-02-11 01:08:41 +00:00
|
|
|
|
|
|
|
self.context.clickhouse_version = clickhouse_version
|
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
|
|
|
|
|
|
|
|
with Pool(3) as pool:
|
|
|
|
try:
|
2022-03-22 16:39:58 +00:00
|
|
|
Feature(
|
|
|
|
test=load("ldap.authentication.regression", "regression"),
|
|
|
|
parallel=True,
|
|
|
|
executor=pool,
|
|
|
|
)(**args)
|
|
|
|
Feature(
|
|
|
|
test=load("ldap.external_user_directory.regression", "regression"),
|
|
|
|
parallel=True,
|
|
|
|
executor=pool,
|
|
|
|
)(**args)
|
|
|
|
Feature(
|
|
|
|
test=load("ldap.role_mapping.regression", "regression"),
|
|
|
|
parallel=True,
|
|
|
|
executor=pool,
|
|
|
|
)(**args)
|
2021-05-07 13:14:40 +00:00
|
|
|
finally:
|
2022-01-11 15:11:38 +00:00
|
|
|
join()
|
2020-06-29 12:55:27 +00:00
|
|
|
|
2022-03-22 16:39:58 +00:00
|
|
|
|
2020-06-29 12:55:27 +00:00
|
|
|
if main():
|
2021-01-18 22:03:31 +00:00
|
|
|
regression()
|