Skip to content

Commit

Permalink
test/pybind: fix test_rbd.TestClone.test_trash_snapshot
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/25114
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 84a6385)
  • Loading branch information
trociny authored and Jason Dillaman committed Aug 16, 2018
1 parent 2ed57ed commit 672bd58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/pybind/test_rbd.py
Expand Up @@ -1379,12 +1379,14 @@ def test_trash_snapshot(self):
rados.conf_set("rbd_default_clone_format", "auto")

self.image.remove_snap('snap2')
self.rbd.remove(ioctx, clone_name)

snaps = [s for s in self.image.list_snaps() if s['name'] != 'snap1']
eq([RBD_SNAP_NAMESPACE_TYPE_TRASH], [s['namespace'] for s in snaps])
eq([{'original_name' : 'snap2'}], [s['trash'] for s in snaps])

self.rbd.remove(ioctx, clone_name)
eq([], [s for s in self.image.list_snaps() if s['name'] != 'snap1'])

class TestExclusiveLock(object):

@require_features([RBD_FEATURE_EXCLUSIVE_LOCK])
Expand Down

0 comments on commit 672bd58

Please sign in to comment.