From 1cf44dee3a94dcac765aff9b2827e20cd05f971f Mon Sep 17 00:00:00 2001 From: Priti Sarap Date: Tue, 8 Dec 2015 16:29:13 +0530 Subject: [PATCH] CLOUDSTACK-9121: Adding VmSnapshot validation in testpath_revert_snap.py --- test/integration/testpaths/testpath_revert_snap.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/integration/testpaths/testpath_revert_snap.py b/test/integration/testpaths/testpath_revert_snap.py index 8026f343919..59344009123 100644 --- a/test/integration/testpaths/testpath_revert_snap.py +++ b/test/integration/testpaths/testpath_revert_snap.py @@ -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):