Signed-off-by: Ramon Medeiros <ramonn(a)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