-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93559ed
commit dd3bcc7
Showing
7 changed files
with
618 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
feature/s3/transfermanager/api_op_DownloadObject_integ_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//go:build integration | ||
// +build integration | ||
|
||
package transfermanager | ||
|
||
import ( | ||
"bytes" | ||
"strings" | ||
"testing" | ||
) | ||
|
||
func TestInteg_DownloadObject(t *testing.T) { | ||
cases := map[string]getObjectTestData{ | ||
"seekable body": {Body: strings.NewReader("hello world"), ExpectBody: []byte("hello world")}, | ||
"empty string body": {Body: strings.NewReader(""), ExpectBody: []byte("")}, | ||
"multipart download body": {Body: bytes.NewReader(largeObjectBuf), ExpectBody: largeObjectBuf}, | ||
} | ||
|
||
for name, c := range cases { | ||
t.Run(name, func(t *testing.T) { | ||
testDownloadObject(t, setupMetadata.Buckets.Source.Name, c) | ||
}) | ||
} | ||
} |
Oops, something went wrong.