mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-05 19:55:37 +00:00
fix(s3): align encrypted checksums and multipart completion (#7025)
* fix(s3): align encrypted checksum handling * test(s3): align multipart SSE-C completion * fix(ecstore): scope startup helper to tests
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py
|
||||
--- a/s3tests/functional/test_s3.py
|
||||
+++ b/s3tests/functional/test_s3.py
|
||||
@@ -20631,13 +20631,6 @@ def _test_copy_part_enc(file_size, source_mode_key, dest_mode_key, source_sc=Non
|
||||
})
|
||||
|
||||
if dest_mode_key == 'sse-c':
|
||||
- # make sure api is verifying the SSE-C headers
|
||||
- e = assert_raises(ClientError, client.complete_multipart_upload,
|
||||
- Bucket=dest_bucket_name, Key='testobj2',
|
||||
- UploadId=upload_id, MultipartUpload={'Parts': parts})
|
||||
- status, _ = _get_status_and_error_code(e.response)
|
||||
- assert status == 400
|
||||
-
|
||||
# and the key would be the same as the one used in upload part
|
||||
# use the source key to complete the upload
|
||||
# this is not allowed, so we expect an error
|
||||
@@ -20649,6 +20642,10 @@ def _test_copy_part_enc(file_size, source_mode_key, dest_mode_key, source_sc=Non
|
||||
status, _ = _get_status_and_error_code(e.response)
|
||||
assert status == 400
|
||||
|
||||
+ # CompleteMultipartUpload does not require SSE-C headers. The upload
|
||||
+ # metadata already identifies the key used for the uploaded parts.
|
||||
+ complete_args = {}
|
||||
+
|
||||
# complete the multipart upload
|
||||
response = client.complete_multipart_upload(
|
||||
Bucket=dest_bucket_name,
|
||||
Reference in New Issue
Block a user