]> git-server-git.apps.pok.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>
Tue, 21 May 2024 05:19:07 +0000 (05:19 +0000)
Add test for zero crc check failed.

Fixes: https://tracker.ceph.com/issues/53240
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit 6662e6bc215c2d0bee16bc3674b07be1e239b4c0)

src/test/pybind/test_rados.py

index 31d6b2b9a28bdf23ce029438905a0f90f8ba65cc..a1d32d3deef38b45d44d08e26ede7fa0c6611b50 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')