コード例 #1
0
def test_kill_all_should_kill_all_nodes_and_remove_state_file():
    run('create')
    assert_mongods_running(3)

    run('killnodes all')
    assert_mongods_running(0)
    assert_no_state_file()
コード例 #2
0
def test_kill_all_should_kill_all_nodes_and_remove_state_file():
    run('create')
    assert_mongods_running(3)

    run('killnodes all')
    assert_mongods_running(0)
    assert_no_state_file()
コード例 #3
0
def test_should_not_fail_if_no_state_file():
    assert_mongods_running(0)
    assert_no_state_file()

    output = run('listnodes')
コード例 #4
0
def test_should_not_fail_if_no_state_file():
    assert_mongods_running(0)
    assert_no_state_file()

    run('killnodes all')
コード例 #5
0
def test_should_not_fail_if_no_state_file():
    assert_mongods_running(0)
    assert_no_state_file()

    output = run('listnodes')
コード例 #6
0
def test_should_not_fail_if_no_state_file():
    assert_mongods_running(0)
    assert_no_state_file()

    run('killnodes all')