Skip to content

Commit

Permalink
Merge branch 'refs/heads/regression-test-19699' into incorrect-mergin…
Browse files Browse the repository at this point in the history
…g-take2
  • Loading branch information
klauspost committed May 13, 2024
2 parents 0d1bbc2 + 27a00bd commit 52745a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmd/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ func (s *TestSuiteCommon) TestListObjectsHandler(c *check) {
c.Assert(err, nil)
c.Assert(response.StatusCode, http.StatusOK)

for _, objectName := range []string{"foo bar 1", "foo bar 2"} {
for _, objectName := range []string{"foo bar 1", "foo bar 2", "obj2", "obj2/"} {
buffer := bytes.NewReader([]byte("Hello World"))
request, err = newTestSignedRequest(http.MethodPut, getPutObjectURL(s.endPoint, bucketName, objectName),
int64(buffer.Len()), buffer, s.accessKey, s.secretKey, s.signer)
Expand Down Expand Up @@ -1619,6 +1619,13 @@ func (s *TestSuiteCommon) TestListObjectsHandler(c *check) {
},
},
{getListObjectsV2URL(s.endPoint, bucketName, "", "1000", "", "url"), []string{"<Key>foo+bar+1</Key>", "<Key>foo+bar+2</Key>"}},
{
getListObjectsV2URL(s.endPoint, bucketName, "", "1000", "", ""),
[]string{
"<Key>obj2</Key>",
"<Key>obj2/</Key>",
},
},
}

for _, testCase := range testCases {
Expand Down

0 comments on commit 52745a1

Please sign in to comment.