]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
s3: test checksum for get_object with part number
authorsungjoon_koh <sungjoon_koh@linecorp.com>
Wed, 29 Oct 2025 17:55:16 +0000 (02:55 +0900)
committerCasey Bodley <cbodley@redhat.com>
Thu, 4 Dec 2025 19:15:01 +0000 (14:15 -0500)
(cherry picked from commit 01075ff90fff4b6e7161aa850cf2d9ed9b58140e)

s3tests/functional/test_s3.py

index ee72b37f6d1bd393c627f6cf75fbc7af3ca5c868..5532a9714dfa347b332fab53660e4a7a7b269380 100644 (file)
@@ -14678,6 +14678,18 @@ def multipart_checksum_3parts_helper(key=None, checksum_algo=None, checksum_type
     assert response3['Checksum']['ChecksumType'] == checksum_type
     assert response3['Checksum'][cksum_arg_name] == kwargs['composite_cksum']
 
+    response4 = client.get_object(Bucket=bucket, Key=key, PartNumber=1)
+    assert response4['ChecksumType'] == checksum_type
+    assert response4[cksum_arg_name] == kwargs['part1_cksum']
+
+    response5 = client.get_object(Bucket=bucket, Key=key, PartNumber=2)
+    assert response5['ChecksumType'] == checksum_type
+    assert response5[cksum_arg_name] == kwargs['part2_cksum']
+
+    response6 = client.get_object(Bucket=bucket, Key=key, PartNumber=3)
+    assert response6['ChecksumType'] == checksum_type
+    assert response6[cksum_arg_name] == kwargs['part3_cksum']
+
 @pytest.mark.checksum
 @pytest.mark.fails_on_dbstore
 def test_multipart_use_cksum_helper_sha256():