def test_restart_node_with_no_nodes(fetch): with pytest.raises(FailedActivity) as x: resource_list = [] fetch.return_value = resource_list restart_node(None, None, None, None) assert "No AKS clusters found" in str(x.value)
def test_restart_node(restart, fetch): resource_list = [resource] fetch.return_value = resource_list restart_node(None, None, None, None)