Пример #1
0
def regression(self,
               local,
               clickhouse_binary_path,
               stress=None,
               parallel=None):
    """ClickHouse regression.
    """
    top().terminating = False
    args = {
        "local": local,
        "clickhouse_binary_path": clickhouse_binary_path,
        "stress": stress,
        "parallel": parallel
    }

    self.context.stress = stress
    self.context.parallel = parallel

    tasks = []
    with Pool(8) as pool:
        try:
            run_scenario(
                pool, tasks,
                Feature(test=load("example.regression", "regression")), args)
            #run_scenario(pool, tasks, Feature(test=load("ldap.regression", "regression")), args)
            #run_scenario(pool, tasks, Feature(test=load("rbac.regression", "regression")), args)
            #run_scenario(pool, tasks, Feature(test=load("aes_encryption.regression", "regression")), args)
            #run_scenario(pool, tasks, Feature(test=load("map_type.regression", "regression")), args)
            #run_scenario(pool, tasks, Feature(test=load("window_functions.regression", "regression")), args)
            #run_scenario(pool, tasks, Feature(test=load("datetime64_extended_range.regression", "regression")), args)
            #run_scenario(pool, tasks, Feature(test=load("kerberos.regression", "regression")), args)
            #run_scenario(pool, tasks, Feature(test=load("extended_precision_data_types.regression", "regression")), args)
        finally:
            join(tasks)
Пример #2
0
def regression(self,
               local,
               clickhouse_binary_path,
               stress=None,
               parallel=None):
    """ClickHouse AES encryption functions regression module.
    """
    top().terminating = False
    nodes = {
        "clickhouse": ("clickhouse1", "clickhouse2", "clickhouse3"),
    }

    if stress is not None:
        self.context.stress = stress
    if parallel is not None:
        self.context.parallel = parallel

    with Cluster(local,
                 clickhouse_binary_path,
                 nodes=nodes,
                 docker_compose_project_dir=os.path.join(
                     current_dir(), "aes_encryption_env")) as cluster:
        self.context.cluster = cluster

        tasks = []
        with Pool(5) as pool:
            try:
                run_scenario(
                    pool, tasks,
                    Feature(test=load("aes_encryption.tests.encrypt",
                                      "feature"),
                            flags=TE))
                run_scenario(
                    pool, tasks,
                    Feature(test=load("aes_encryption.tests.decrypt",
                                      "feature"),
                            flags=TE))
                run_scenario(
                    pool, tasks,
                    Feature(test=load("aes_encryption.tests.encrypt_mysql",
                                      "feature"),
                            flags=TE))
                run_scenario(
                    pool, tasks,
                    Feature(test=load("aes_encryption.tests.decrypt_mysql",
                                      "feature"),
                            flags=TE))
                run_scenario(
                    pool, tasks,
                    Feature(test=load(
                        "aes_encryption.tests.compatibility.feature",
                        "feature"),
                            flags=TE))
            finally:
                join(tasks)
Пример #3
0
def regression(self,
               local,
               clickhouse_binary_path,
               parallel=None,
               stress=None):
    """ClickHouse LDAP integration regression module.
    """
    top().terminating = False
    args = {"local": local, "clickhouse_binary_path": clickhouse_binary_path}

    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)