Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getCompleteMultipartMD5 (0.35 sec)

  1. cmd/object-api-utils_test.go

    		}
    		if !testCase.shouldPass && isValidObjectName {
    			t.Errorf("Test case %d: Expected object name \"%s\" to be invalid", i+1, testCase.objectName)
    		}
    	}
    }
    
    // Tests getCompleteMultipartMD5
    func TestGetCompleteMultipartMD5(t *testing.T) {
    	testCases := []struct {
    		parts          []CompletePart
    		expectedResult string
    		expectedErr    string
    	}{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    	u, err := uuid.NewRandom()
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    	return u[:]
    }
    
    // Create an s3 compatible MD5sum for complete multipart transaction.
    func getCompleteMultipartMD5(parts []CompletePart) string {
    	var finalMD5Bytes []byte
    	for _, part := range parts {
    		md5Bytes, err := hex.DecodeString(canonicalizeETag(part.ETag))
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  3. cmd/erasure-multipart.go

    	if fi.Metadata["etag"] == "" {
    		if opts.UserDefined["etag"] != "" {
    			fi.Metadata["etag"] = opts.UserDefined["etag"]
    		} else { // fallback if not already calculated in handler.
    			fi.Metadata["etag"] = getCompleteMultipartMD5(parts)
    		}
    	}
    
    	// Save the consolidated actual size.
    	if opts.ReplicationRequest {
    		fi.Metadata[ReservedMetadataPrefix+"actual-size"] = opts.UserDefined["X-Minio-Internal-Actual-Object-Size"]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  4. cmd/object-api-multipart_test.go

    		// a successful call to CompleteMultipartUpload.
    		{
    			[]CompletePart{
    				{ETag: validPartMD5, PartNumber: 6},
    			},
    		},
    	}
    	s3MD5 := getCompleteMultipartMD5(inputParts[3].parts)
    
    	// Test cases with sample input values for CompleteMultipartUpload.
    	testCases := []struct {
    		bucket   string
    		object   string
    		uploadID string
    		parts    []CompletePart
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  5. cmd/server_test.go

    	c.Assert(response.StatusCode, http.StatusOK)
    	var parts []CompletePart
    	for _, part := range completeUploads.Parts {
    		part.ETag = canonicalizeETag(part.ETag)
    		parts = append(parts, part)
    	}
    	etag := getCompleteMultipartMD5(parts)
    	c.Assert(canonicalizeETag(response.Header.Get(xhttp.ETag)), etag)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  6. cmd/object-handlers_test.go

    				{ETag: validPartMD5, PartNumber: 2},
    			},
    		},
    	}
    
    	// on successful complete multipart operation the s3MD5 for the parts uploaded will be returned.
    	s3MD5 := getCompleteMultipartMD5(inputParts[3].parts)
    
    	// generating the response body content for the success case.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top