CLOUDSTACK-9001: Modifying snapshot results validation in testpath_uuid_event testpath

This commit is contained in:
Priti Sarap 2015-10-28 11:19:36 +05:30
parent 3ded3e9000
commit 0e01c7f357
1 changed files with 9 additions and 3 deletions

View File

@ -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"
)