Skip to content

Commit

Permalink
integration/test_storage: Check for snapshot order in .all()
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Jul 8, 2024
1 parent 6412320 commit c5b9709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def test_create_get_restore_delete_volume_snapshot(self):

# Test getting all snapshots with recursion
all_snapshots = volume.snapshots.all(use_recursion=True)
self.assertIn(first_snapshot, all_snapshots)
self.assertIn(custom_snapshot, all_snapshots)
self.assertEqual(first_snapshot, all_snapshots[0])
self.assertEqual(custom_snapshot, all_snapshots[1])

# Change snapshot values
first_snapshot.rename("first")
Expand Down

0 comments on commit c5b9709

Please sign in to comment.