From 851fcf5c71aff195d81b4792bbae39341b60c1d4 Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 23 Nov 2017 23:28:52 +0700 Subject: [PATCH] Fix compute auto idlepc test. --- tests/handlers/api/controller/test_compute.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/handlers/api/controller/test_compute.py b/tests/handlers/api/controller/test_compute.py index 04427627..57cbdfb7 100644 --- a/tests/handlers/api/controller/test_compute.py +++ b/tests/handlers/api/controller/test_compute.py @@ -232,10 +232,11 @@ def test_compute_autoidlepc(http_controller, controller): params = { "platform": "c7200", - "image": "test.bin" + "image": "test.bin", + "ram": 512 } with asyncio_patch("gns3server.controller.Controller.autoidlepc", return_value={"idlepc": "0x606de20c"}) as mock: - response = http_controller.post("/computes/my_compute_id/autoidlepc", params, example=True) + response = http_controller.post("/computes/my_compute_id/auto_idlepc", params, example=True) assert mock.called assert response.status == 200