From: NitzanMordhai Date: Tue, 26 Dec 2023 09:02:22 +0000 (+0000) Subject: test/pybind: check crc fail after append zero X-Git-Tag: v20.0.0~1906^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6662e6bc215c2d0bee16bc3674b07be1e239b4c0;p=ceph.git test/pybind: check crc fail after append zero Add test for zero crc check failed. Fixes: https://tracker.ceph.com/issues/53240 Signed-off-by: Nitzan Mordechai --- diff --git a/src/test/pybind/test_rados.py b/src/test/pybind/test_rados.py index c113005b15191..7d12ca23f4d97 100644 --- a/src/test/pybind/test_rados.py +++ b/src/test/pybind/test_rados.py @@ -312,8 +312,12 @@ class TestIoctx(object): def test_list_objects_empty(self): eq(list(self.ioctx.list_objects()), []) - def test_list_objects(self): + def test_read_crc(self): self.ioctx.write('a', b'') + self.ioctx.write('a', b'', 5) + self.ioctx.read('a') + + def test_list_objects(self): self.ioctx.write('b', b'foo') self.ioctx.write_full('c', b'bar') self.ioctx.append('d', b'jazz')