CLOUDSTACK-9121: Adding VmSnapshot validation in testpath_revert_snap.py

This commit is contained in:
Priti Sarap 2015-12-08 16:29:13 +05:30
parent 3ded3e9000
commit 1cf44dee3a
1 changed files with 6 additions and 1 deletions

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):