[Kimchi-devel] [PATCH 4/6] Update test case according to commit e9cd4666

Aline Manera alinefm at linux.vnet.ibm.com
Wed Oct 21 23:40:48 UTC 2015


Commit e9cd4666 changed the way Kimchi validates the image file to
create a Template. So update the test cases accordingly.

Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
 src/wok/plugins/kimchi/tests/test_model.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/wok/plugins/kimchi/tests/test_model.py b/src/wok/plugins/kimchi/tests/test_model.py
index 55117cf..485b078 100644
--- a/src/wok/plugins/kimchi/tests/test_model.py
+++ b/src/wok/plugins/kimchi/tests/test_model.py
@@ -253,9 +253,6 @@ class ModelTests(unittest.TestCase):
             self.assertEquals('finished', inst.task_lookup(task_id)['status'])
             vol_path = inst.storagevolume_lookup('default', vol)['path']
 
-            params = {'name': 'test', 'disks': [{'base': vol_path}]}
-            self.assertRaises(OperationFailed, inst.templates_create, params)
-
             # Hack the model objstore to add a new template
             # It is needed as the image file must be a bootable image when
             # using model
-- 
2.1.0




More information about the Kimchi-devel mailing list