Skip to content

Commit bcd166a

Browse files
committed
Fix SSE-C tests for ChecksumMode on HeadObject
1 parent 6a9fb46 commit bcd166a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/functional/s3/test_cp_command.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,7 @@ def test_cp_with_sse_c_copy_source_fileb(self):
987987
expected_head_args = {
988988
'Bucket': 'bucket-one',
989989
'Key': 'key.txt',
990+
'ChecksumMode': 'ENABLED',
990991
'SSECustomerAlgorithm': 'AES256',
991992
'SSECustomerKey': key_contents,
992993
}
@@ -1018,6 +1019,7 @@ def test_s3s3_cp_with_destination_sse_c(self):
10181019
expected_head_args = {
10191020
'Bucket': 'bucket-one',
10201021
'Key': 'key.txt',
1022+
'ChecksumMode': 'ENABLED',
10211023
# don't expect to see SSE-c params for the source
10221024
}
10231025
self.assertDictEqual(self.operations_called[0][1], expected_head_args)
@@ -1049,6 +1051,7 @@ def test_s3s3_cp_with_different_sse_c_keys(self):
10491051
expected_head_args = {
10501052
'Bucket': 'bucket-one',
10511053
'Key': 'key.txt',
1054+
'ChecksumMode': 'ENABLED',
10521055
'SSECustomerAlgorithm': 'AES256',
10531056
'SSECustomerKey': 'foo',
10541057
}
@@ -1085,6 +1088,7 @@ def test_s3s3_cp_with_destination_sse_c_multipart(self):
10851088
self.head_object_request(
10861089
'bucket-one',
10871090
'key.txt',
1091+
ChecksumMode='ENABLED',
10881092
# no SSE-C params — source is unencrypted
10891093
),
10901094
('GetObjectTagging', mock.ANY),
@@ -1136,6 +1140,7 @@ def test_s3s3_cp_with_different_sse_c_keys_multipart(self):
11361140
expected_head_args = {
11371141
'Bucket': 'bucket-one',
11381142
'Key': 'key.txt',
1143+
'ChecksumMode': 'ENABLED',
11391144
'SSECustomerAlgorithm': 'AES256',
11401145
'SSECustomerKey': 'source-key',
11411146
}
@@ -1145,6 +1150,7 @@ def test_s3s3_cp_with_different_sse_c_keys_multipart(self):
11451150
self.head_object_request(
11461151
'bucket-one',
11471152
'key.txt',
1153+
ChecksumMode='ENABLED',
11481154
SSECustomerAlgorithm='AES256',
11491155
SSECustomerKey='source-key',
11501156
),

0 commit comments

Comments
 (0)