]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/pybind/test_rbd: filter out unknown list_children2 keys 25868/head
authorMykola Golub <mgolub@suse.com>
Tue, 8 Jan 2019 10:49:55 +0000 (12:49 +0200)
committerJason Dillaman <dillaman@redhat.com>
Wed, 9 Jan 2019 13:33:15 +0000 (08:33 -0500)
Fixes: http://tracker.ceph.com/issues/37729
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 24cc60335d86ff625e0c5d98cab0c4449a24f296)

src/test/pybind/test_rbd.py

index fd7ffbed66ec027dfad8d3532a82f4a4029e53db..f1223ce5f96cf19354cc75c090fceed09719e676 100644 (file)
@@ -1196,7 +1196,8 @@ class TestClone(object):
         eq(deduped, set(expected))
 
     def check_children2(self, expected):
-        actual = list(self.image.list_children2())
+        actual = [{k:v for k,v in x.items() if k in expected[0]} \
+                  for x in self.image.list_children2()]
         eq(actual, expected)
 
     def get_image_id(self, ioctx, name):