Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Jan 22, 2025
1 parent dfc6699 commit 8aa34f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 0 additions & 2 deletions esti/s3_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"github.com/aws/aws-sdk-go-v2/service/s3/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"github.com/davecgh/go-spew/spew"
"github.com/go-openapi/swag"
"github.com/thanhpk/randstr"

Expand Down Expand Up @@ -279,7 +278,6 @@ func TestListMultipartUploads(t *testing.T) {
}
output, err := s3Client.ListMultipartUploads(ctx, &s3.ListMultipartUploadsInput{Bucket: resp1.Bucket})
require.NoError(t, err, "failed to create multipart upload")
spew.Dump(output)

require.Contains(t, output.Uploads[0].Key, obj1)

Expand Down
4 changes: 0 additions & 4 deletions pkg/block/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ type MultipartPart struct {
LastModified time.Time
Size int64
}
type Upload struct {
Key string
UploadID string
}

// MultipartUploadCompletion parts described as part of complete multipart upload. Each part holds the part number and ETag received while calling part upload.
// NOTE that S3 implementation and our S3 gateway accept and returns ETag value surrounded with double-quotes ("), while
Expand Down
11 changes: 5 additions & 6 deletions pkg/gateway/operations/putobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ import (
)

const (
IfNoneMatchHeader = "If-None-Match"
CopySourceHeader = "x-amz-copy-source"
CopySourceRangeHeader = "x-amz-copy-source-range"
QueryParamUploadID = "uploadId"
QueryParamListMultipart = "uploads"
QueryParamPartNumber = "partNumber"
IfNoneMatchHeader = "If-None-Match"
CopySourceHeader = "x-amz-copy-source"
CopySourceRangeHeader = "x-amz-copy-source-range"
QueryParamUploadID = "uploadId"
QueryParamPartNumber = "partNumber"
)

type PutObject struct{}
Expand Down

0 comments on commit 8aa34f5

Please sign in to comment.