mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Also fix test to not use a bucket name with a leading slash - this causes the bucket name to become empty and go to an unintended API call (listbuckets).
This commit is contained in:
committed by
Harshavardhana
parent
61d67a061c
commit
2f43709f85
@@ -1971,7 +1971,7 @@ func (s *TestSuiteCommon) TestGetObjectErrors(c *C) {
|
||||
verifyError(c, response, "NoSuchKey", "The specified key does not exist.", http.StatusNotFound)
|
||||
|
||||
// request to download an object, but an invalid bucket name is set.
|
||||
request, err = newTestSignedRequest("GET", getGetObjectURL(s.endPoint, "/getobjecterrors-.", objectName),
|
||||
request, err = newTestSignedRequest("GET", getGetObjectURL(s.endPoint, "getobjecterrors-.", objectName),
|
||||
0, nil, s.accessKey, s.secretKey, s.signer)
|
||||
c.Assert(err, IsNil)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user