Skip to content

Commit cd71e05

Browse files
author
sanjeev
committed
Merge pull request apache#1190 from pritisarap12/CLOUDSTACK-9121-Adding-VmSnapshot-validation-in-testpath_revert_snap.py
CLOUDSTACK-9121: Adding VmSnapshot validation in testpath_revert_snap.pyIn testpath_revert_snap.py, there was no code to check if VM snapshot is created or not hence adding code for snapshot validation. * pr/1190: CLOUDSTACK-9121: Adding VmSnapshot validation in testpath_revert_snap.py Signed-off-by: sanjeev <[email protected]>
2 parents f61f23c + 1cf44de commit cd71e05

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/integration/testpaths/testpath_revert_snap.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ def test_01_check_revert_snapshot(self):
150150
vm_snap = VmSnapshot.create(self.apiclient,
151151
vm.id)
152152

153-
volume_list_validation = validateList(vm_snap)
153+
self.assertEqual(
154+
vm_snap.state,
155+
"Ready",
156+
"Check the snapshot of vm is ready!"
157+
)
158+
154159

155160
#Step 3
156161
with self.assertRaises(Exception):

0 commit comments

Comments
 (0)