From faaf6b1f9891ad073ed69345d69b727a463fbca7 Mon Sep 17 00:00:00 2001 From: Priti Sarap Date: Wed, 15 Jul 2015 14:12:10 +0530 Subject: [PATCH] CLOUDSTACK-8636: Verify failure of creation of Custom disk offering with disksize parameter -Modified list validation of volume list This closes #590 --- test/integration/testpaths/testpath_revert_snap.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/integration/testpaths/testpath_revert_snap.py b/test/integration/testpaths/testpath_revert_snap.py index 11db8c5e1dd..8026f343919 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