Skip to content

Commit

Permalink
[experiment] Does Azure work if we copy ranges from different blobs?
Browse files Browse the repository at this point in the history
  • Loading branch information
arielshaqed committed Feb 15, 2024
1 parent 767ebc3 commit 1f121c7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion esti/s3_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ func TestS3CopyObjectMultipart(t *testing.T) {
r := rand.New(rand.NewSource(17))
objContent := testutil.RandomReader(r, largeDataContentLength)
srcPath := gatewayTestPrefix + "source-file"
srcPath2 := srcPath + "-2"
destPath := gatewayTestPrefix + "dest-file"

// upload data
Expand All @@ -350,6 +351,12 @@ func TestS3CopyObjectMultipart(t *testing.T) {
minio.PutObjectOptions{})
require.NoError(t, err)

r = rand.New(rand.NewSource(17))
objContent = testutil.RandomReader(r, largeDataContentLength)
_, err = s3lakefsClient.PutObject(ctx, repo, srcPath2, objContent, largeDataContentLength,
minio.PutObjectOptions{})
require.NoError(t, err)

dest := minio.CopyDestOptions{
Bucket: destRepo,
Object: destPath,
Expand All @@ -364,7 +371,7 @@ func TestS3CopyObjectMultipart(t *testing.T) {
End: minDataContentLengthForMultipart - 1,
}, {
Bucket: repo,
Object: srcPath,
Object: srcPath2,
MatchRange: true,
Start: minDataContentLengthForMultipart,
End: largeDataContentLength - 1,
Expand Down

0 comments on commit 1f121c7

Please sign in to comment.