Repository: cloudstack
Updated Branches:
  refs/heads/master f61f23c7f -> cd71e05b1


CLOUDSTACK-9121: Adding VmSnapshot validation in testpath_revert_snap.py


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1cf44dee
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1cf44dee
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1cf44dee

Branch: refs/heads/master
Commit: 1cf44dee3a94dcac765aff9b2827e20cd05f971f
Parents: 3ded3e9
Author: Priti Sarap <[email protected]>
Authored: Tue Dec 8 16:29:13 2015 +0530
Committer: Priti Sarap <[email protected]>
Committed: Tue Dec 8 16:29:13 2015 +0530

----------------------------------------------------------------------
 test/integration/testpaths/testpath_revert_snap.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1cf44dee/test/integration/testpaths/testpath_revert_snap.py
----------------------------------------------------------------------
diff --git a/test/integration/testpaths/testpath_revert_snap.py 
b/test/integration/testpaths/testpath_revert_snap.py
index 8026f34..5934400 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):

Reply via email to