]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/pybind: check crc fail after append zero
authorNitzanMordhai <nmordech@redhat.com>
Tue, 26 Dec 2023 09:02:22 +0000 (09:02 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Sun, 19 May 2024 05:03:15 +0000 (05:03 +0000)
Add test for zero crc check failed.

Fixes: https://tracker.ceph.com/issues/53240
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
src/test/pybind/test_rados.py

index c113005b151913d05d4f4ab57883c578e98398ad..7d12ca23f4d97c6552f4e0e4e24799a206502fc8 100644 (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')