From 0e01c7f357cd6596570fd966e0f2ac65c4bbedb1 Mon Sep 17 00:00:00 2001 From: Priti Sarap Date: Wed, 28 Oct 2015 11:19:36 +0530 Subject: [PATCH] CLOUDSTACK-9001: Modifying snapshot results validation in testpath_uuid_event testpath --- test/integration/testpaths/testpath_uuid_event.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/integration/testpaths/testpath_uuid_event.py b/test/integration/testpaths/testpath_uuid_event.py index 29ec4497d74..71a5abcee52 100644 --- a/test/integration/testpaths/testpath_uuid_event.py +++ b/test/integration/testpaths/testpath_uuid_event.py @@ -167,9 +167,15 @@ class TestVerifyEventsTable(cloudstackTestCase): self.apiclient, root_volume.id) - self.assertNotEqual( - len(snapshot), - 0, + snapshots_list = Snapshot.list(self.userapiclient, + id=snapshot.id) + + status = validateList(snapshots_list) + self.assertEqual(status[0], PASS, "Snapshots List Validation Failed") + + self.assertEqual( + snapshot.state, + "BackedUp", "Check if snapshot gets created properly" )