mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Return link object when start capturing
This commit is contained in:
2 files changed
+9
-6
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user