[Kimchi-devel] [PATCH][Kimchi 5/5] Add test to check bootorder

Ramon Medeiros ramonn at linux.vnet.ibm.com
Mon Jun 6 21:13:37 UTC 2016


Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
 tests/test_model.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/test_model.py b/tests/test_model.py
index f4a145f..04c20df 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -1125,6 +1125,11 @@ class ModelTests(unittest.TestCase):
             self.assertEquals([], inst.vm_lookup(u'пeω-∨м')['users'])
             self.assertEquals([], inst.vm_lookup(u'пeω-∨м')['groups'])
 
+            # change bootorder
+            b_order = ["hd", "network", "cdrom"]
+            inst.vm_update(u'пeω-∨м', {"boot":{"order":b_order}})
+            self.assertEquals(b_order, inst.vm_lookup(u'пeω-∨м')['boot'])
+
     def test_get_interfaces(self):
         inst = model.Model('test:///default',
                            objstore_loc=self.tmp_store)
-- 
2.5.5




More information about the Kimchi-devel mailing list