You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
557 B

  1. package s3api
  2. import (
  3. "testing"
  4. "time"
  5. )
  6. func TestCopyObjectResponse(t *testing.T) {
  7. // https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
  8. response := CopyObjectResult{
  9. ETag: "12345678",
  10. LastModified: time.Now(),
  11. }
  12. println(string(encodeResponse(response)))
  13. }
  14. func TestCopyPartResponse(t *testing.T) {
  15. // https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
  16. response := CopyPartResult{
  17. ETag: "12345678",
  18. LastModified: time.Now(),
  19. }
  20. println(string(encodeResponse(response)))
  21. }