mirror of https://github.com/apache/cloudstack.git
Fixing resize volume test case
This commit is contained in:
parent
12ce5115e4
commit
e4e9b745e1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue