def regression(self, local, clickhouse_binary_path, clickhouse_version, stress=None): """Simple example of how you can use TestFlows to test ClickHouse. """ nodes = { "clickhouse": ("clickhouse1", ), } self.context.clickhouse_version = clickhouse_version if stress is not None: self.context.stress = stress folder_name = os.path.basename(current_dir()) if current_cpu() == 'aarch64': env = f"{folder_name}_env_arm64" else: env = f"{folder_name}_env" with Cluster(local, clickhouse_binary_path, nodes=nodes, docker_compose_project_dir=os.path.join(current_dir(), env)) as cluster: self.context.cluster = cluster Scenario(run=load("example.tests.example", "scenario"))
def regression(self, local, clickhouse_binary_path, clickhouse_version=None, stress=None): """ClickHouse LDAP role mapping regression module. """ nodes = { "clickhouse": ("clickhouse1", "clickhouse2", "clickhouse3"), } self.context.clickhouse_version = clickhouse_version if stress is not None: self.context.stress = stress from platform import processor as current_cpu folder_name = os.path.basename(current_dir()) if current_cpu() == 'aarch64': env = f"{folder_name}_env_arm64" else: env = f"{folder_name}_env" with Cluster(local, clickhouse_binary_path, nodes=nodes, docker_compose_project_dir=os.path.join(current_dir(), env)) as cluster: self.context.cluster = cluster Scenario(run=load("ldap.authentication.tests.sanity", "scenario"), name="ldap sanity") Feature(run=load("ldap.role_mapping.tests.server_config", "feature")) Feature(run=load("ldap.role_mapping.tests.mapping", "feature")) Feature(run=load("ldap.role_mapping.tests.user_dn_detection", "feature")) Feature(run=load("ldap.role_mapping.tests.cluster_secret", "feature"))
def regression(self, local, clickhouse_binary_path, clickhouse_version=None, stress=None): """RBAC regression.""" nodes = {"clickhouse": ("clickhouse1", "clickhouse2", "clickhouse3")} self.context.clickhouse_version = clickhouse_version if stress is not None: self.context.stress = stress from platform import processor as current_cpu folder_name = os.path.basename(current_dir()) if current_cpu() == "aarch64": env = f"{folder_name}_env_arm64" else: env = f"{folder_name}_env" with Cluster( local, clickhouse_binary_path, nodes=nodes, docker_compose_project_dir=os.path.join(current_dir(), env), ) as cluster: self.context.cluster = cluster Feature(run=load("rbac.tests.syntax.feature", "feature")) Feature(run=load("rbac.tests.privileges.feature", "feature")) Feature(run=load("rbac.tests.views.feature", "feature"))
def regression(self, local, clickhouse_binary_path, clickhouse_version=None, stress=None): """ClickHouse LDAP external user directory regression module.""" nodes = { "clickhouse": ("clickhouse1", "clickhouse2", "clickhouse3"), } self.context.clickhouse_version = clickhouse_version if stress is not None: self.context.stress = stress from platform import processor as current_cpu folder_name = os.path.basename(current_dir()) if current_cpu() == "aarch64": env = f"{folder_name}_env_arm64" else: env = f"{folder_name}_env" with Cluster( local, clickhouse_binary_path, nodes=nodes, docker_compose_project_dir=os.path.join(current_dir(), env), ) as cluster: self.context.cluster = cluster Scenario(run=load("ldap.authentication.tests.sanity", "scenario")) Scenario( run=load("ldap.external_user_directory.tests.simple", "scenario")) Feature( run=load("ldap.external_user_directory.tests.restart", "feature")) Feature(run=load("ldap.external_user_directory.tests.server_config", "feature")) Feature(run=load( "ldap.external_user_directory.tests.external_user_directory_config", "feature", )) Feature(run=load("ldap.external_user_directory.tests.connections", "feature")) Feature(run=load("ldap.external_user_directory.tests.authentications", "feature")) Feature( run=load("ldap.external_user_directory.tests.roles", "feature"))