test: more chunked upload tests with different payload types

This commit is contained in:
Luke McCrone
2025-10-08 18:36:00 -03:00
parent 8466d06371
commit b629f5d707
25 changed files with 1145 additions and 63 deletions

View File

@@ -0,0 +1,17 @@
package command
import (
"errors"
)
func NewPutObjectCommand(s3Command *S3Command) (*S3Command, error) {
if s3Command.BucketName == "" {
return nil, errors.New("PutObject must have bucket name")
}
if s3Command.ObjectKey == "" {
return nil, errors.New("PutObject must have object key")
}
s3Command.Method = "PUT"
s3Command.Query = ""
return s3Command, nil
}