mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Expose the capture status in controller link API
This commit is contained in:
6 files changed
+20
-5
No files matched your search
@@ -68,7 +68,8 @@ def test_json(async_run, project, compute):
|
||||
"adapter_number": 1,
|
||||
"port_number": 3
|
||||
}
|
||||
]
|
||||
],
|
||||
"capturing": False
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -149,6 +149,7 @@ def test_capture(async_run, project):
|
||||
async_run(link.addVM(vm_iou, 3, 1))
|
||||
|
||||
capture = async_run(link.start_capture())
|
||||
assert link.capturing
|
||||
|
||||
compute1.post.assert_any_call("/projects/{}/iou/vms/{}/adapters/3/ports/1/start_capture".format(project.id, vm_iou.id), data={
|
||||
"capture_file_name": link.capture_file_name(),
|
||||
@@ -156,6 +157,6 @@ def test_capture(async_run, project):
|
||||
})
|
||||
|
||||
capture = async_run(link.stop_capture())
|
||||
assert link.capturing is False
|
||||
|
||||
compute1.post.assert_any_call("/projects/{}/iou/vms/{}/adapters/3/ports/1/stop_capture".format(project.id, vm_iou.id))
|
||||
|
||||
Reference in new issue
Block a user