From bf3444933ee8bdebf5fa7a62f614cd1276765ec1 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 27 Apr 2015 22:54:24 +0200 Subject: [PATCH] Fix test qemu now raise 409 if nio_ethernet --- tests/handlers/api/test_qemu.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/handlers/api/test_qemu.py b/tests/handlers/api/test_qemu.py index b06189f5..9d715f7d 100644 --- a/tests/handlers/api/test_qemu.py +++ b/tests/handlers/api/test_qemu.py @@ -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):