mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-20 05:05:14 +02:00
Stream pcap from compute to controller to client
This commit is contained in:
15 files changed
+172
-124
No files matched your search
@@ -179,3 +179,11 @@ def test_json(compute):
|
||||
"user": "test",
|
||||
"connected": True
|
||||
}
|
||||
|
||||
|
||||
def test_streamFile(project, async_run, compute):
|
||||
response = MagicMock()
|
||||
response.status = 200
|
||||
with asyncio_patch("aiohttp.ClientSession.request", return_value=response) as mock:
|
||||
async_run(compute.streamFile(project, "test/titi"))
|
||||
mock.assert_called_with("GET", "https://example.com:84/v2/compute/projects/{}/stream/test/titi".format(project.id), auth=None)
|
||||
Reference in new issue
Block a user