1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix test qemu now raise 409 if nio_ethernet

This commit is contained in:
Julien Duponchelle 2015-04-27 22:54:24 +02:00
parent f208b472a1
commit bf3444933e

View File

@ -150,10 +150,7 @@ def test_qemu_nio_create_ethernet(server, vm):
"ethernet_device": "eth0",
},
example=True)
assert response.status == 201
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"
assert response.status == 409
def test_qemu_delete_nio(server, vm):