test: use the upload's own key as key-marker in the truncation test
An upload-id-marker has to belong to the key-marker itself, S3 answers key-marker=ba with an upload of bar with 400 Invalid uploadId marker.
This commit is contained in:
1 parent
e1d2284906
commit
25ec56b451
1 file changed
+1
-1
@@ -566,7 +566,7 @@ func ListMultipartUploads_upload_id_marker_truncated(s *S3Conf) error {
|
|||||||
ctx, cancel := context.WithTimeout(context.Background(), shortTimeout)
|
ctx, cancel := context.WithTimeout(context.Background(), shortTimeout)
|
||||||
out, err := s3client.ListMultipartUploads(ctx, &s3.ListMultipartUploadsInput{
|
out, err := s3client.ListMultipartUploads(ctx, &s3.ListMultipartUploadsInput{
|
||||||
Bucket: &bucket,
|
Bucket: &bucket,
|
||||||
KeyMarker: getPtr("ba"),
|
KeyMarker: uploads[0].Key,
|
||||||
UploadIdMarker: uploads[0].UploadId,
|
UploadIdMarker: uploads[0].UploadId,
|
||||||
MaxUploads: &test.maxUploads,
|
MaxUploads: &test.maxUploads,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user