Пример #1
0
def test_riak_end_hosts_file1(riak_plan):
    compare_task_to_names(filters.end_at(
        riak_plan,
        filters.get_tasks_from_names(riak_plan, ['hosts_file1.run'])),
        {'node1.run', 'hosts_file1.run'})
Пример #2
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'})
Пример #3
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'})