[Kimchi-devel] [PATCH] [Kimchi 2/2] Add tests to verify if cache and io of a disk can be changed
Ramon Medeiros
ramonn at linux.vnet.ibm.com
Tue Feb 28 19:06:47 UTC 2017
Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
tests/test_model.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/test_model.py b/tests/test_model.py
index 95c9e08..e49e556 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -198,6 +198,13 @@ class ModelTests(unittest.TestCase):
task = inst.task_lookup(task['id'])
self.assertEquals('finished', task['status'])
+ # add io and cache to disk
+ inst.vmstorage_update("kimchi-vm", "vda", {"io": "threads"})
+ inst.vmstorage_update("kimchi-vm", "vda", {"cache": "unsafe"})
+ vda = inst.vmstorage_lookup("kimchi-vm", "vda")
+ self.assertEquals("unsafe", vda["cache"])
+ self.assertEquals("threads", vda["io"])
+
vms = inst.vms_get_list()
self.assertTrue('kimchi-vm' in vms)
--
2.9.3
More information about the Kimchi-devel
mailing list