Merge pull request #1190 from pritisarap12/CLOUDSTACK-9121-Adding-VmSnapshot-validation-in-testpath_revert_snap.py

CLOUDSTACK-9121: Adding VmSnapshot validation in testpath_revert_snap.pyIn testpath_revert_snap.py, there was no code to check if VM snapshot is created or not hence adding code for snapshot validation.

* pr/1190:
  CLOUDSTACK-9121: Adding VmSnapshot validation in testpath_revert_snap.py

Signed-off-by: sanjeev <sanjeev@apache.org>
This commit is contained in:
sanjeev 2016-02-10 10:59:18 +05:30
commit cd71e05b1e

View File

@ -150,7 +150,12 @@ class TestUnableToRevertSnapshot(cloudstackTestCase):
vm_snap = VmSnapshot.create(self.apiclient,
vm.id)
volume_list_validation = validateList(vm_snap)
self.assertEqual(
vm_snap.state,
"Ready",
"Check the snapshot of vm is ready!"
)
#Step 3
with self.assertRaises(Exception):