aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_test.go
blob: 026766beb3af4b362b896f06937fc796347b0b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)))

}