MCPcopy
hub / github.com/minio/minio-go / testEncryptedSSES3ToSSES3CopyObject

Function testEncryptedSSES3ToSSES3CopyObject

functional_tests.go:10082–10100  ·  view source on GitHub ↗

Test encrypted copy object

()

Source from the content-addressed store, hash-verified

10080
10081// Test encrypted copy object
10082func testEncryptedSSES3ToSSES3CopyObject() {
10083 // initialize logging params
10084 startTime := time.Now()
10085 testName := getFuncName()
10086 function := "CopyObject(destination, source)"
10087 args := map[string]interface{}{}
10088
10089 c, err := NewClient(ClientConfig{TrailingHeaders: true})
10090 if err != nil {
10091 logError(testName, function, args, startTime, "", "MinIO v2 client object creation failed", err)
10092 return
10093 }
10094 // Generate a new random bucket name.
10095 bucketName := randString(60, rand.NewSource(time.Now().UnixNano()), "minio-go-test-")
10096
10097 sseSrc := encrypt.NewSSE()
10098 sseDst := encrypt.NewSSE()
10099 testEncryptedCopyObjectWrapper(c, bucketName, sseSrc, sseDst)
10100}
10101
10102// Test encrypted copy object
10103func testEncryptedSSES3ToUnencryptedCopyObject() {

Callers 1

mainFunction · 0.85

Calls 6

NewSSEFunction · 0.92
getFuncNameFunction · 0.85
NewClientFunction · 0.85
logErrorFunction · 0.85
randStringFunction · 0.70

Tested by

no test coverage detected