Exemplo n.º 1
0
def test_restart_node_with_no_nodes(fetch):
    with pytest.raises(FailedActivity) as x:
        resource_list = []
        fetch.return_value = resource_list
        stop_node(None, None, None, None)

    assert "No AKS clusters found" in str(x.value)
Exemplo n.º 2
0
def test_stop_node(stop, fetch):
    resource_list = [resource]
    fetch.return_value = resource_list

    stop_node(None, None, None, None)