Skip to content

Commit 6662e6b

Browse files
committed
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 <[email protected]>
1 parent afd4266 commit 6662e6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/pybind/test_rados.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,12 @@ def test_cmpext(self):
312312
def test_list_objects_empty(self):
313313
eq(list(self.ioctx.list_objects()), [])
314314

315-
def test_list_objects(self):
315+
def test_read_crc(self):
316316
self.ioctx.write('a', b'')
317+
self.ioctx.write('a', b'', 5)
318+
self.ioctx.read('a')
319+
320+
def test_list_objects(self):
317321
self.ioctx.write('b', b'foo')
318322
self.ioctx.write_full('c', b'bar')
319323
self.ioctx.append('d', b'jazz')

0 commit comments

Comments
 (0)