CLOUDSTACK-8636: Verify failure of creation of Custom disk offering with disksize parameter -Modified list validation of volume list This closes #590
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/faaf6b1f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/faaf6b1f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/faaf6b1f Branch: refs/heads/master Commit: faaf6b1f9891ad073ed69345d69b727a463fbca7 Parents: 837486a Author: Priti Sarap <[email protected]> Authored: Wed Jul 15 14:12:10 2015 +0530 Committer: sanjeev <[email protected]> Committed: Mon Jul 20 12:29:05 2015 +0530 ---------------------------------------------------------------------- test/integration/testpaths/testpath_revert_snap.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/faaf6b1f/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 11db8c5..8026f34 100644 --- a/test/integration/testpaths/testpath_revert_snap.py +++ b/test/integration/testpaths/testpath_revert_snap.py @@ -31,6 +31,7 @@ from marvin.lib.common import (get_domain, get_template, list_volumes, ) +from marvin.codes import PASS class TestUnableToRevertSnapshot(cloudstackTestCase): @@ -118,7 +119,6 @@ class TestUnableToRevertSnapshot(cloudstackTestCase): """ # Step 1 - # Create VM on cluster wide vm = VirtualMachine.create( self.userapiclient, self.testdata["small"], @@ -137,11 +137,13 @@ class TestUnableToRevertSnapshot(cloudstackTestCase): volume_list_validation = validateList(volumes_cluster_list) - self.assertNotEqual( - len(volume_list_validation), - 0, - "Check if volume gets attached properly" + self.assertEqual( + volume_list_validation[0], + PASS, + "Event list validation failed due to %s" % + volume_list_validation[2] ) + root_volume = volumes_cluster_list[0] #Step 2
