Fixing resize volume test case

This commit is contained in:
Girish Shilamkar 2014-07-25 19:58:40 +05:30
parent 12ce5115e4
commit e4e9b745e1
1 changed files with 1 additions and 9 deletions

View File

@ -560,16 +560,8 @@ class TestVolumes(cloudstackTestCase):
cmd.id = rootvolume.id
cmd.diskofferingid = self.services['diskofferingid']
success = False
try:
with self.assertRaises(Exception):
self.apiClient.resizeVolume(cmd)
except Exception as ex:
if "Can only resize Data volumes" in str(ex):
success = True
self.assertEqual(
success,
True,
"ResizeVolume - verify root disks cannot be resized by disk offering id")
# Ok, now let's try and resize a volume that is not custom.
cmd.id = self.volume.id