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 <nmordech@redhat.com>
This commit is contained in:
NitzanMordhai 2023-12-26 09:02:22 +00:00 committed by Nitzan Mordechai
parent afd42666ea
commit 6662e6bc21

View File

@ -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')