mirror of
https://github.com/minio/minio.git
synced 2026-12-01 23:41:49 +00:00
Add unit-tests for ListObjectParts API handler (#2826)
* Add missing uploadID test ... make variables in test code unexported. * Add ServerNotInitialized test for ListObjectPartsHandler * Add tests for ListObjectParts with signatureV2 and Anonymous requests * Add failure test cases for ListObjectParts
This commit is contained in:
1 parent
61a18ed48f
commit
4f902d42b2
4 files changed
+339
-24
No files matched your search
@@ -2267,7 +2267,7 @@ func (s *TestSuiteCommonV2) TestObjectMultipartListError(c *C) {
|
||||
|
||||
// HTTP request to ListMultipart Uploads.
|
||||
// max-keys is set to valid value of 1
|
||||
request, err = newTestSignedRequestV2("GET", getListMultipartURLWithParams(s.endPoint, bucketName, objectName, uploadID, "1"),
|
||||
request, err = newTestSignedRequestV2("GET", getListMultipartURLWithParams(s.endPoint, bucketName, objectName, uploadID, "1", "", ""),
|
||||
0, nil, s.accessKey, s.secretKey)
|
||||
c.Assert(err, IsNil)
|
||||
// execute the HTTP request.
|
||||
@@ -2277,7 +2277,7 @@ func (s *TestSuiteCommonV2) TestObjectMultipartListError(c *C) {
|
||||
|
||||
// HTTP request to ListMultipart Uploads.
|
||||
// max-keys is set to invalid value of -2.
|
||||
request, err = newTestSignedRequestV2("GET", getListMultipartURLWithParams(s.endPoint, bucketName, objectName, uploadID, "-2"),
|
||||
request, err = newTestSignedRequestV2("GET", getListMultipartURLWithParams(s.endPoint, bucketName, objectName, uploadID, "-2", "", ""),
|
||||
0, nil, s.accessKey, s.secretKey)
|
||||
c.Assert(err, IsNil)
|
||||
// execute the HTTP request.
|
||||
|
||||
Reference in new issue
Block a user