Skip to content

Commit

Permalink
test/pybind: check crc fail after append zero
Browse files Browse the repository at this point in the history
Add test for zero crc check failed.

Fixes: https://tracker.ceph.com/issues/53240
Signed-off-by: Nitzan Mordechai <[email protected]>
  • Loading branch information
NitzanMordhai committed May 19, 2024
1 parent afd4266 commit 6662e6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/pybind/test_rados.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6662e6b

Please sign in to comment.