1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/requests/storage
Stan Hu 3546408e47 Filter unknown UploadPartCopy paramaters
Previously attempting to use S3 server side encryption headers
(e.g. `x-amz-server-side-encryption`) would fail when attempting to use
`File#copy` because the method would pass these headers to the UploadPartCopy
(https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)
API call. However, this would fail with an error:

```
<Code>InvalidArgument</Code>
<Message>x-amz-server-side-encryption header is not supported for this operation.</Message>
<ArgumentName>x-amz-server-side-encryption</ArgumentName>
<ArgumentValue>AES256</ArgumentValue>
```

This header can and should be used in the CompleteMultipartUpload
call. To support this, we filter out unknown headers in the
UploadPartCopy.
2021-01-09 21:35:18 -08:00
..
acl_utils_tests.rb git grep -l "Storage::AWS" -- tests/ | xargs sed -i "" "s/Storage::AWS/AWS::Storage/g" 2018-09-17 23:04:55 +09:00
bucket_tests.rb Update test lifecycle capitalization. 2015-12-21 18:48:29 -05:00
cors_utils_tests.rb git grep -l "Storage::AWS" -- tests/ | xargs sed -i "" "s/Storage::AWS/AWS::Storage/g" 2018-09-17 23:04:55 +09:00
delete_multiple_objects_tests.rb working tests 2015-01-02 09:42:20 -08:00
multipart_copy_tests.rb Filter unknown UploadPartCopy paramaters 2021-01-09 21:35:18 -08:00
multipart_upload_tests.rb initial import 2014-12-31 09:17:51 -08:00
object_tests.rb Rewind pointer if file is eof on put_object mock 2021-01-07 18:09:12 -08:00
versioning_tests.rb Removed versioning convenience tag. 2017-02-12 12:27:33 +00:00