t.Errorf("Test %d: %s: Expected Delimiter to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.Delimiter,actualResult.Delimiter)
t.Errorf("Test %d: %s: Expected Delimiter to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.Delimiter,actualResult.Delimiter)
t.Errorf("Test %d: %s: Expected NextUploadIDMarker to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.NextUploadIDMarker,actualResult.NextUploadIDMarker)
t.Errorf("Test %d: %s: Expected NextKeyMarker to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.NextKeyMarker,actualResult.NextKeyMarker)
t.Errorf("Test %d: %s: Expected keyMarker to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.KeyMarker,actualResult.KeyMarker)
t.Errorf("Test %d: %s: Expected keyMarker to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.KeyMarker,actualResult.KeyMarker)
}
}
// ListMultipartUploads returns empty respsonse always in FS mode
t.Errorf("Test %d: %s: Expected Istruncated to be \"%v\", but found it to \"%v\"",i+1,instanceType,expectedResult.IsTruncated,actualResult.IsTruncated)
t.Errorf("Test %d: %s: Expected Istruncated to be \"%v\", but found it to \"%v\"",i+1,instanceType,expectedResult.IsTruncated,actualResult.IsTruncated)
t.Errorf("Test %d: %s: Expected NextUploadIDMarker to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.NextUploadIDMarker,actualResult.NextUploadIDMarker)
t.Errorf("Test %d: %s: Expected NextKeyMarker to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.NextKeyMarker,actualResult.NextKeyMarker)
t.Errorf("Test %d: %s: Expected the result to contain info of %d Multipart Uploads, but found %d instead",i+1,instanceType,len(expectedResult.Uploads),len(actualResult.Uploads))
t.Errorf("Test %d: %s: Expected the result to contain info of %d Multipart Uploads, but found %d instead",i+1,instanceType,len(expectedResult.Uploads),len(actualResult.Uploads))
}else{
continue
}
// Iterating over the uploads Metadata and asserting the fields.
// Iterating over the uploads Metadata and asserting the fields.
forj,actualMetaData:=rangeactualResult.Uploads{
forj,actualMetaData:=rangeactualResult.Uploads{
// Asserting the object name in the upload Metadata.
// Asserting the object name in the upload Metadata.
t.Errorf("Test %d: %s: Expected UploadID to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.UploadID,actualResult.UploadID)
t.Errorf("Test %d: %s: Expected UploadID to be \"%s\", but instead found it to be \"%s\"",i+1,instanceType,expectedResult.UploadID,actualResult.UploadID)
t.Errorf("Test %d: %s: Expected NextPartNumberMarker to be \"%d\", but instead found it to be \"%d\"",i+1,instanceType,expectedResult.NextPartNumberMarker,actualResult.NextPartNumberMarker)
t.Errorf("Test %d: %s: Expected PartNumberMarker to be \"%d\", but instead found it to be \"%d\"",i+1,instanceType,expectedResult.PartNumberMarker,actualResult.PartNumberMarker)
t.Errorf("Test %d: %s: Expected PartNumberMarker to be \"%d\", but instead found it to be \"%d\"",i+1,instanceType,expectedResult.PartNumberMarker,actualResult.PartNumberMarker)
t.Errorf("Test %d: %s: Expected IsTruncated to be \"%v\", but found it to \"%v\"",i+1,instanceType,expectedResult.IsTruncated,actualResult.IsTruncated)
t.Errorf("Test %d: %s: Expected IsTruncated to be \"%v\", but found it to \"%v\"",i+1,instanceType,expectedResult.IsTruncated,actualResult.IsTruncated)
t.Errorf("Test %d: %s: Expected NextPartNumberMarker to be \"%d\", but instead found it to be \"%d\"",i+1,instanceType,expectedResult.NextPartNumberMarker,actualResult.NextPartNumberMarker)
t.Errorf("Test %d: %s: Expected the result to contain info of %d Parts, but found %d instead",i+1,instanceType,len(expectedResult.Parts),len(actualResult.Parts))
t.Errorf("Test %d: %s: Expected the result to contain info of %d Parts, but found %d instead",i+1,instanceType,len(expectedResult.Parts),len(actualResult.Parts))
}else{
continue
}
// Iterating over the partInfos and asserting the fields.
// Iterating over the partInfos and asserting the fields.
t.Errorf("Test %d: %s: Part %d: Expected Etag to be \"%s\", but instead found \"%s\"",i+1,instanceType,j+1,expectedResult.Parts[j].ETag,actualMetaData.ETag)
t.Errorf("Test %d: %s: Part %d: Expected Etag to be \"%s\", but instead found \"%s\"",i+1,instanceType,j+1,expectedResult.Parts[j].ETag,actualMetaData.ETag)