mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-09-12 20:10:41 +02:00
33 lines
557 B
Go
33 lines
557 B
Go
package s3api
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestCopyObjectResponse(t *testing.T) {
|
|
|
|
// https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
|
|
|
|
response := CopyObjectResult{
|
|
ETag: "12345678",
|
|
LastModified: time.Now(),
|
|
}
|
|
|
|
println(string(encodeResponse(response)))
|
|
|
|
}
|
|
|
|
func TestCopyPartResponse(t *testing.T) {
|
|
|
|
// https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
|
|
|
|
response := CopyPartResult{
|
|
ETag: "12345678",
|
|
LastModified: time.Now(),
|
|
}
|
|
|
|
println(string(encodeResponse(response)))
|
|
|
|
}
|