Add API endpoint to return all links attached to a node.

This commit is contained in:
grossmj committed 2018-06-06 20:46:44 +07:00
1 parent fd5df0052a
commit 62f87de23a
4 files changed
+29 -7

No files matched your search

+3 -3
View File
@@ -98,7 +98,7 @@ def test_add_node(async_run, project, compute):
assert link.create.called
link._project.controller.notification.emit.assert_called_with("link.created", link.__json__())
assert link in node2.link
assert link in node2.links
def test_add_node_already_connected(async_run, project, compute):
@@ -348,10 +348,10 @@ def test_delete(async_run, project, compute):
node2._ports = [EthernetPort("E0", 0, 0, 4)]
async_run(link.add_node(node2, 0, 4))
assert link in node2.link
assert link in node2.links
async_run(link.delete())
assert link not in node2.link
assert link not in node2.links
def test_update_filters(async_run, project, compute):