Exemplo n.º 1
0
def test_config_instance_mongodb_3_6():
    """
    test mongodb cluster output:
    config instance
    config servers store the metadata for a sharded cluster.
    """
    dataset = read_dataset("mongo_output_config-3.6.13.json")
    call_mk_mongodb_functions(dataset)
    mk_mongodb.sections_replica(dataset)
Exemplo n.º 2
0
def test_shard_instance_mongodb_3_4():
    """
    test mongodb cluster output:
    shard instance
    shard stores some portion of a sharded cluster’s total data set.
    """
    dataset = read_dataset("mongo_output_shard-3.4.21.json")
    call_mk_mongodb_functions(dataset)
    mk_mongodb.sections_replica(dataset)
Exemplo n.º 3
0
def test_arbiter_instance_mongodb_3_4():
    """
    test mongodb cluster output:
    arbiter instance
    arbiter does not have a copy of data set and cannot become a primary,
    but it can vote for the primary.
    """
    dataset = read_dataset("mongo_output_arbiter-3.4.21.json")
    call_mk_mongodb_functions(dataset)
    mk_mongodb.sections_replica(dataset)
Exemplo n.º 4
0
def test_router_instance_mongodb_3_4():
    """
    test mongodb cluster output:
    mongos (router)
    mongos is a routing and load balancing process that acts an interface between an application and
    a MongoDB sharded cluster.
    """
    dataset = read_dataset("mongo_output_router-3.4.21.json")
    call_mk_mongodb_functions(dataset)
    mk_mongodb.sections_replica(dataset)