Return link object when start capturing

This commit is contained in:
Julien Duponchelle committed 2016-04-26 18:13:15 +02:00
1 parent 76b2ca2bc0
commit 92d1594afd
2 files changed
+9 -6

No files matched your search

+2 -2
View File
@@ -83,7 +83,7 @@ def test_start_capture(http_controller, tmpdir, project, compute, async_run):
with asyncio_patch("gns3server.controller.link.Link.start_capture") as mock:
response = http_controller.post("/projects/{}/links/{}/start_capture".format(project.id, link.id), example=True)
assert mock.called
assert response.status == 204
assert response.status == 201
def test_stop_capture(http_controller, tmpdir, project, compute, async_run):
@@ -92,7 +92,7 @@ def test_stop_capture(http_controller, tmpdir, project, compute, async_run):
with asyncio_patch("gns3server.controller.link.Link.stop_capture") as mock:
response = http_controller.post("/projects/{}/links/{}/stop_capture".format(project.id, link.id), example=True)
assert mock.called
assert response.status == 204
assert response.status == 201
def test_pcap(http_controller, tmpdir, project, compute, async_run):