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", }
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'}
def test_riak_start_node1(riak_plan): assert filters.start_from(riak_plan, ['node1.run']) == { 'node1.run', 'hosts_file1.run', 'riak_service1.run' }
def test_start_from(dg_ex1, start_nodes, visited): assert set(filters.start_from(dg_ex1, start_nodes)) == visited
def test_riak_start_node1(riak_plan): assert filters.start_from(riak_plan, ['node1.run']) == {'node1.run', 'hosts_file1.run', 'riak_service1.run'}
def test_riak_start_node1(riak_plan): assert filters.start_from(riak_plan, ["node1.run"]) == {"node1.run", "hosts_file1.run", "riak_service1.run"}
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'})
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'})