mirror of
https://github.com/GNS3/gns3-server
synced 2025-02-17 18:42:00 +00:00
Fix test qemu now raise 409 if nio_ethernet
This commit is contained in:
parent
f208b472a1
commit
bf3444933e
@ -150,10 +150,7 @@ def test_qemu_nio_create_ethernet(server, vm):
|
|||||||
"ethernet_device": "eth0",
|
"ethernet_device": "eth0",
|
||||||
},
|
},
|
||||||
example=True)
|
example=True)
|
||||||
assert response.status == 201
|
assert response.status == 409
|
||||||
assert response.route == "/projects/{project_id}/qemu/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio"
|
|
||||||
assert response.json["type"] == "nio_generic_ethernet"
|
|
||||||
assert response.json["ethernet_device"] == "eth0"
|
|
||||||
|
|
||||||
|
|
||||||
def test_qemu_delete_nio(server, vm):
|
def test_qemu_delete_nio(server, vm):
|
||||||
|
Loading…
Reference in New Issue
Block a user