[Kimchi-devel] [PATCH][Kimchi 2/2] Update tests

Ramon Medeiros ramonn at linux.vnet.ibm.com
Wed Aug 17 17:30:06 UTC 2016


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

diff --git a/tests/test_rest.py b/tests/test_rest.py
index 80596c2..b6c3203 100644
--- a/tests/test_rest.py
+++ b/tests/test_rest.py
@@ -863,9 +863,11 @@ class RestTests(unittest.TestCase):
             resp = self.request('/plugins/kimchi/storagepools/tmp/deactivate',
                                 {}, 'POST')
             self.assertEquals(200, resp.status)
+
+            # cannot delete storagepool with volumes associate to guests
             resp = self.request('/plugins/kimchi/storagepools/tmp', {},
                                 'DELETE')
-            self.assertEquals(204, resp.status)
+            self.assertEquals(400, resp.status)
 
     def test_vm_iface(self):
 
-- 
2.5.5




More information about the Kimchi-devel mailing list