Skip to content

Commit

Permalink
testsuite: CopyObject additional test case
Browse files Browse the repository at this point in the history
Add a test case of copying an object to the same destination.

Change-Id: I37b7c0090c2e94dbf7c2e1957506c7c474375019
  • Loading branch information
Fadila82 committed Nov 30, 2022
1 parent bf3a981 commit b861666
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions testsuite/copy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,22 @@ func TestCopyObject(t *testing.T) {
// one remote segment and one inline segment
{"testbucket", "remote-segment-size", "testbucket", "new-remote-segment-size", 10 * memory.KiB},
{"testbucket", "remote+inline", "testbucket", "new-remote+inline", 11 * memory.KiB},
//// 3 remote segment
//// 3 remote segments
{"testbucket", "multiple-remote-segments", "testbucket", "new-multiple-remote-segments", 29 * memory.KiB},
{"testbucket", "remote-with-prefix", "testbucket", "a/prefix/remote-with-prefix", 9 * memory.KiB},
//
//// different bucket
//// different buckets
{"testbucket", "empty", "new-testbucket", "new-empty", 0},
{"testbucket", "inline", "new-testbucket", "new-inline", memory.KiB},
{"testbucket", "remote", "new-testbucket", "new-remote", 9 * memory.KiB},
//// one remote segment and one inline segment
{"testbucket", "remote-segment-size", "new-testbucket", "new-remote-segment-size", 10 * memory.KiB},
{"testbucket", "remote+inline", "new-testbucket", "new-remote+inline", 11 * memory.KiB},
// 3 remote segment
// 3 remote segments
{"testbucket", "multiple-remote-segments", "new-testbucket", "new-multiple-remote-segments", 29 * memory.KiB},
{"testbucket", "remote-with-prefix", "new-testbucket", "a/prefix/remote-with-prefix", 9 * memory.KiB},
// same destination
{"testbucket", "same-destination", "testbucket", "same-destination", 10 * memory.KiB},
}

for _, tc := range testCases {
Expand Down

0 comments on commit b861666

Please sign in to comment.