mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Add API endpoint to return all links attached to a node.
This commit is contained in:
1 parent
fd5df0052a
commit
62f87de23a
4 files changed
+29
-7
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user