Upstream versity/versitygw state of the touched files before c02173db7a
This commit is contained in:
1 parent
b8628c396f
commit
295bb05dd1
5 files changed
+3
-59
No files matched your search
@@ -17,8 +17,6 @@ package integration
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/service/s3"
|
||||
"github.com/aws/aws-sdk-go-v2/service/s3/types"
|
||||
@@ -195,33 +193,6 @@ func ListObjects_invalid_max_keys(s *S3Conf) error {
|
||||
})
|
||||
}
|
||||
|
||||
// start-after belongs to ListObjectsV2, so S3 rejects it on a V1 listing
|
||||
// instead of ignoring it. The SDK ListObjects input has no StartAfter field,
|
||||
// so the request is signed and sent by hand.
|
||||
func ListObjects_start_after(s *S3Conf) error {
|
||||
testName := "ListObjects_start_after"
|
||||
return actionHandler(s, testName, func(s3client *s3.Client, bucket string) error {
|
||||
_, err := putObjects(s3client, []string{"bar", "baz", "foo"}, bucket)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
req, err := createSignedReq(http.MethodGet, s.endpoint,
|
||||
fmt.Sprintf("%v?start-after=bar", bucket),
|
||||
s.awsID, s.awsSecret, "s3", s.awsRegion, "", nil, time.Now(), nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
resp, err := s.httpClient.Do(req)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return checkHTTPResponseApiErr(resp, s3err.GetInvalidArgumentErr(s3err.InvalidArgStartAfter, ""))
|
||||
})
|
||||
}
|
||||
|
||||
func ListObjects_max_keys_0(s *S3Conf) error {
|
||||
testName := "ListObjects_max_keys_0"
|
||||
return actionHandler(s, testName, func(s3client *s3.Client, bucket string) error {
|
||||
|
||||
@@ -314,7 +314,6 @@ func TestListObjects(ts *TestState) {
|
||||
ts.Run(ListObjects_truncated)
|
||||
ts.Run(ListObjects_paginated)
|
||||
ts.Run(ListObjects_invalid_max_keys)
|
||||
ts.Run(ListObjects_start_after)
|
||||
ts.Run(ListObjects_max_keys_0)
|
||||
ts.Run(ListObjects_exceeding_max_keys)
|
||||
ts.Run(ListObjects_delimiter)
|
||||
@@ -3154,7 +3153,6 @@ func GetIntTests() IntTests {
|
||||
"ListObjects_truncated": ListObjects_truncated,
|
||||
"ListObjects_paginated": ListObjects_paginated,
|
||||
"ListObjects_invalid_max_keys": ListObjects_invalid_max_keys,
|
||||
"ListObjects_start_after": ListObjects_start_after,
|
||||
"ListObjects_max_keys_0": ListObjects_max_keys_0,
|
||||
"ListObjects_delimiter": ListObjects_delimiter,
|
||||
"ListObjects_max_keys_none": ListObjects_max_keys_none,
|
||||
|
||||
Reference in new issue
Block a user