From 6662e6bc215c2d0bee16bc3674b07be1e239b4c0 Mon Sep 17 00:00:00 2001 From: NitzanMordhai Date: Tue, 26 Dec 2023 09:02:22 +0000 Subject: [PATCH] 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 --- src/test/pybind/test_rados.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ def test_cmpext(self): 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')