Expose the capture status in controller link API

This commit is contained in:
Julien Duponchelle committed 2016-04-21 16:11:42 +02:00
1 parent 549a6280c0
commit 1a22fb9250
6 files changed
+20 -5

No files matched your search

+2 -1
View File
@@ -68,7 +68,8 @@ def test_json(async_run, project, compute):
"adapter_number": 1,
"port_number": 3
}
]
],
"capturing": False
}
+2 -1
View File
@@ -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))