mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 08:44:52 +02:00
Upgrade to aiohttp 3.8.3
This commit is contained in:
parent
78b2b93540
commit
9ff302592c
@ -1,5 +1,5 @@
|
||||
jsonschema==3.2.0
|
||||
aiohttp==3.8.1
|
||||
aiohttp==3.8.3
|
||||
aiohttp-cors==0.7.0
|
||||
aiofiles==22.1.0; python_version >= '3.7'
|
||||
aiofiles==0.8.0; python_version < '3.7' # v0.8.0 is the last version to support Python 3.6
|
||||
|
@ -185,12 +185,14 @@ async def test_qemu_update(compute_api, vm, free_console_port, fake_qemu_vm):
|
||||
"hdb_disk_image": "linux载.img"
|
||||
}
|
||||
|
||||
response = await compute_api.put("/projects/{project_id}/qemu/nodes/{node_id}".format(project_id=vm["project_id"], node_id=vm["node_id"]), params)
|
||||
assert response.status == 200
|
||||
assert response.json["name"] == "test"
|
||||
assert response.json["console"] == free_console_port
|
||||
assert response.json["hdb_disk_image"] == "linux载.img"
|
||||
assert response.json["ram"] == 1024
|
||||
with patch("gns3server.compute.qemu.qemu_vm.QemuVM.updated") as mock:
|
||||
response = await compute_api.put("/projects/{project_id}/qemu/nodes/{node_id}".format(project_id=vm["project_id"], node_id=vm["node_id"]), params)
|
||||
assert response.status == 200
|
||||
assert response.json["name"] == "test"
|
||||
assert response.json["console"] == free_console_port
|
||||
assert response.json["hdb_disk_image"] == "linux载.img"
|
||||
assert response.json["ram"] == 1024
|
||||
assert mock.called
|
||||
|
||||
|
||||
async def test_qemu_nio_create_udp(compute_api, vm):
|
||||
|
Loading…
Reference in New Issue
Block a user