Skip to content

Commit a97c315

Browse files
committed
Fix failing tests
1 parent d5d33a6 commit a97c315

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/functional/s3/test_cp_command.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ def test_streaming_upload_using_crt_client(self):
22072207
expected_type=S3RequestType.PUT_OBJECT,
22082208
expected_host=self.get_virtual_s3_host('bucket'),
22092209
expected_path='/key',
2210-
expected_body_content=b'foo',
2210+
expected_body_content=b'3\r\nfoo\r\n0\r\nx-amz-checksum-crc32:jHNlIQ==\r\n\r\n',
22112211
)
22122212

22132213
def test_streaming_download_using_crt_client(self):

tests/functional/s3api/test_get_object.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_simple(self):
3838
cmdline += ' outfile'
3939
self.addCleanup(self.remove_file_if_exists, 'outfile')
4040
self.assert_params_for_cmd(cmdline, {'Bucket': 'mybucket',
41+
'ChecksumMode': 'ENABLED',
4142
'Key': 'mykey'})
4243

4344
def test_range(self):
@@ -48,6 +49,7 @@ def test_range(self):
4849
cmdline += ' outfile'
4950
self.addCleanup(self.remove_file_if_exists, 'outfile')
5051
self.assert_params_for_cmd(cmdline, {'Bucket': 'mybucket',
52+
'ChecksumMode': 'ENABLED',
5153
'Key': 'mykey',
5254
'Range': 'bytes=0-499'})
5355

@@ -61,7 +63,9 @@ def test_response_headers(self):
6163
self.addCleanup(self.remove_file_if_exists, 'outfile')
6264
self.assert_params_for_cmd(
6365
cmdline, {
64-
'Bucket': 'mybucket', 'Key': 'mykey',
66+
'Bucket': 'mybucket',
67+
'ChecksumMode': 'ENABLED',
68+
'Key': 'mykey',
6569
'ResponseCacheControl': 'No-cache',
6670
'ResponseContentEncoding': 'x-gzip'
6771
}
@@ -83,7 +87,7 @@ def test_streaming_output_arg_with_error_response(self):
8387
cmdline += ' outfile'
8488
self.addCleanup(self.remove_file_if_exists, 'outfile')
8589
self.assert_params_for_cmd(
86-
cmdline, {'Bucket': 'mybucket', 'Key': 'mykey'})
90+
cmdline, {'Bucket': 'mybucket', 'ChecksumMode': 'ENABLED', 'Key': 'mykey'})
8791

8892

8993
if __name__ == "__main__":

0 commit comments

Comments
 (0)