[Kimchi-devel] [PATCH 3/6] Update test case to use the right Template URI while creating a guest
Aline Manera
alinefm at linux.vnet.ibm.com
Wed Oct 21 23:40:47 UTC 2015
Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
src/wok/plugins/kimchi/tests/test_mockmodel.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/wok/plugins/kimchi/tests/test_mockmodel.py b/src/wok/plugins/kimchi/tests/test_mockmodel.py
index 2e6b60f..4c7926f 100644
--- a/src/wok/plugins/kimchi/tests/test_mockmodel.py
+++ b/src/wok/plugins/kimchi/tests/test_mockmodel.py
@@ -65,7 +65,8 @@ class MockModelTests(unittest.TestCase):
# Create a VM
req = json.dumps({'name': 'test', 'cdrom': fake_iso})
request(host, ssl_port, '/plugins/kimchi/templates', req, 'POST')
- req = json.dumps({'name': 'test-vm', 'template': '/templates/test'})
+ req = json.dumps({'name': 'test-vm',
+ 'template': '/plugins/kimchi/templates/test'})
resp = request(host, ssl_port, '/plugins/kimchi/vms', req, 'POST')
task = json.loads(resp.read())
wait_task(model.task_lookup, task['id'])
--
2.1.0
More information about the Kimchi-devel
mailing list