From: Mykola Golub Date: Tue, 8 Jan 2019 10:49:55 +0000 (+0200) Subject: test/pybind/test_rbd: filter out unknown list_children2 keys X-Git-Tag: v13.2.5~138^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F25868%2Fhead;p=ceph.git test/pybind/test_rbd: filter out unknown list_children2 keys Fixes: http://tracker.ceph.com/issues/37729 Signed-off-by: Mykola Golub (cherry picked from commit 24cc60335d86ff625e0c5d98cab0c4449a24f296) --- diff --git a/src/test/pybind/test_rbd.py b/src/test/pybind/test_rbd.py index fd7ffbed66e..f1223ce5f96 100644 --- a/src/test/pybind/test_rbd.py +++ b/src/test/pybind/test_rbd.py @@ -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):