Beispiel #1
0
def setup_module(module):
    global cluster
    global node
    global simple_tester
    global complex_tester
    global ranged_tester

    cluster = ClickHouseCluster(__file__, name=test_name)
    SOURCE = SourceMongo("MongoDB", "localhost", cluster.mongo_port,
                         cluster.mongo_host, "27017", "root", "clickhouse")

    simple_tester = SimpleLayoutTester(test_name)
    simple_tester.cleanup()
    simple_tester.create_dictionaries(SOURCE)

    complex_tester = ComplexLayoutTester(test_name)
    complex_tester.create_dictionaries(SOURCE)

    ranged_tester = RangedLayoutTester(test_name)
    ranged_tester.create_dictionaries(SOURCE)
    # Since that all .xml configs were created

    main_configs = []
    main_configs.append(os.path.join('configs',
                                     'disable_ssl_verification.xml'))

    dictionaries = simple_tester.list_dictionaries()

    node = cluster.add_instance('node',
                                main_configs=main_configs,
                                dictionaries=dictionaries,
                                with_mongo=True)
Beispiel #2
0
LAYOUTS = [
    Layout("flat"),
    Layout("hashed"),
    Layout("cache"),
    Layout("complex_key_hashed"),
    Layout("complex_key_cache"),
    Layout("range_hashed"),
    Layout("direct"),
    Layout("complex_key_direct")
]

SOURCES = [
    SourceCassandra("Cassandra", "localhost", "9043", "cassandra1", "9042", "",
                    ""),
    SourceMongo("MongoDB", "localhost", "27018", "mongo1", "27017", "root",
                "clickhouse"),
    SourceMongoURI("MongoDB_URI", "localhost", "27018", "mongo1", "27017",
                   "root", "clickhouse"),
    SourceMySQL("MySQL", "localhost", "3308", "mysql1", "3306", "root",
                "clickhouse"),
    SourceClickHouse("RemoteClickHouse", "localhost", "9000", "clickhouse1",
                     "9000", "default", ""),
    SourceClickHouse("LocalClickHouse", "localhost", "9000", "node", "9000",
                     "default", ""),
    SourceFile("File", "localhost", "9000", "node", "9000", "", ""),
    SourceExecutableHashed("ExecutableHashed", "localhost", "9000", "node",
                           "9000", "", ""),
    SourceExecutableCache("ExecutableCache", "localhost", "9000", "node",
                          "9000", "", ""),
    SourceHTTP("SourceHTTP", "localhost", "9000", "clickhouse1", "9000", "",
               ""),