API for deleting a link

This commit is contained in:
Julien Duponchelle committed 2016-03-14 20:54:05 +01:00
1 parent ed291da566
commit 8fed1d9b9f
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -79,4 +79,4 @@ def test_delete_link(http_controller, tmpdir, project, hypervisor, async_run):
project._links = {link.id: link}
with asyncio_patch("gns3server.controller.udp_link.Link.delete"):
response = http_controller.delete("/projects/{}/links/{}".format(project.id, link.id), example=True)
assert response.status == 201
assert response.status == 204