mirror of https://github.com/apache/cloudstack.git
fixed the validation in stopped vm test which expects an exception
This commit is contained in:
parent
49b9da3dfc
commit
e8f64d3cc5
|
|
@ -1884,8 +1884,7 @@ class TestUploadAttachVolume(cloudstackTestCase):
|
|||
'Stopped',
|
||||
"Check VM state is Running or not"
|
||||
)
|
||||
try:
|
||||
with self.assertRaises(Exception):
|
||||
virtual_machine.attach_volume(self.apiclient, volume)
|
||||
except Exception as e:
|
||||
self.fail("Failed to attach the volume: %s" % e)
|
||||
self.debug("Failed to attach the volume as expected")
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue