예제 #1
0
def test_start_at_two_nodes(riak_plan):
    assert filters.start_from(riak_plan, ["node1.run", "node2.run"]) == {
        "hosts_file1.run",
        "riak_service2.run",
        "riak_service2.join",
        "hosts_file2.run",
        "node2.run",
        "riak_service1.run",
        "node1.run",
    }
예제 #2
0
def test_start_at_two_nodes(riak_plan):
    assert filters.start_from(riak_plan, ['node1.run', 'node2.run']) == \
        {'hosts_file1.run', 'riak_service2.run', 'riak_service2.join',
         'hosts_file2.run', 'node2.run', 'riak_service1.run', 'node1.run'}
예제 #3
0
def test_riak_start_node1(riak_plan):
    assert filters.start_from(riak_plan, ['node1.run']) == {
        'node1.run', 'hosts_file1.run', 'riak_service1.run'
    }
예제 #4
0
def test_start_from(dg_ex1, start_nodes, visited):
    assert set(filters.start_from(dg_ex1, start_nodes)) == visited
예제 #5
0
def test_start_at_two_nodes(riak_plan):
    assert filters.start_from(riak_plan, ['node1.run', 'node2.run']) == \
        {'hosts_file1.run', 'riak_service2.run', 'riak_service2.join',
         'hosts_file2.run', 'node2.run', 'riak_service1.run', 'node1.run'}
예제 #6
0
def test_riak_start_node1(riak_plan):
    assert filters.start_from(riak_plan, ['node1.run']) == {'node1.run', 'hosts_file1.run', 'riak_service1.run'}
예제 #7
0
def test_start_from(dg_ex1, start_nodes, visited):
    assert set(filters.start_from(dg_ex1, start_nodes)) == visited
예제 #8
0
def test_riak_start_node1(riak_plan):
    assert filters.start_from(riak_plan, ["node1.run"]) == {"node1.run", "hosts_file1.run", "riak_service1.run"}
예제 #9
0
def test_start_at_two_nodes(riak_plan):
    compare_task_to_names(filters.start_from(
        riak_plan,
        filters.get_tasks_from_names(riak_plan, ['node1.run', 'node2.run'])),
        {'hosts_file1.run', 'riak_service2.run', 'riak_service2.join',
         'hosts_file2.run', 'node2.run', 'riak_service1.run', 'node1.run'})
예제 #10
0
def test_riak_start_node1(riak_plan):
    start_tasks = filters.get_tasks_from_names(riak_plan, ['node1.run'])
    compare_task_to_names(
        filters.start_from(riak_plan, start_tasks),
        {'node1.run', 'hosts_file1.run', 'riak_service1.run'})