mirror of
https://github.com/ceph/ceph
synced 2025-02-19 17:08:05 +00:00
Merge pull request #30927 from zjcmszh/test_remove
test/pybind/rbd.pyx: add test_remove_snap_by_id case in test_rbd.py Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
7eb7857a86
@ -762,6 +762,15 @@ class TestImage(object):
|
||||
self.image.remove_snap('snap1')
|
||||
eq([], list(self.image.list_snaps()))
|
||||
|
||||
def test_remove_snap_by_id(self):
|
||||
eq([], list(self.image.list_snaps()))
|
||||
self.image.create_snap('snap1')
|
||||
eq(['snap1'], [snap['name'] for snap in self.image.list_snaps()])
|
||||
for snap in self.image.list_snaps():
|
||||
snap_id = snap["id"]
|
||||
self.image.remove_snap_by_id(snap_id)
|
||||
eq([], list(self.image.list_snaps()))
|
||||
|
||||
def test_rename_snap(self):
|
||||
eq([], list(self.image.list_snaps()))
|
||||
self.image.create_snap('snap1')
|
||||
|
Loading…
Reference in New Issue
Block a user