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

Function testEncryptedSSECToSSECCopyObject

functional_tests.go:9998–10016  ·  view source on GitHub ↗

Test encrypted copy object

()

Source from the content-addressed store, hash-verified

9996
9997// Test encrypted copy object
9998func testEncryptedSSECToSSECCopyObject() {
9999 // initialize logging params
10000 startTime := time.Now()
10001 testName := getFuncName()
10002 function := "CopyObject(destination, source)"
10003 args := map[string]interface{}{}
10004
10005 c, err := NewClient(ClientConfig{TrailingHeaders: true})
10006 if err != nil {
10007 logError(testName, function, args, startTime, "", "MinIO v2 client object creation failed", err)
10008 return
10009 }
10010 // Generate a new random bucket name.
10011 bucketName := randString(60, rand.NewSource(time.Now().UnixNano()), "minio-go-test-")
10012
10013 sseSrc := encrypt.DefaultPBKDF([]byte("correct horse battery staple"), []byte(bucketName+"srcObject"))
10014 sseDst := encrypt.DefaultPBKDF([]byte("correct horse battery staple"), []byte(bucketName+"dstObject"))
10015 testEncryptedCopyObjectWrapper(c, bucketName, sseSrc, sseDst)
10016}
10017
10018// Test encrypted copy object
10019func testEncryptedSSECToSSES3CopyObject() {

Callers 1

mainFunction · 0.85

Calls 5

getFuncNameFunction · 0.85
NewClientFunction · 0.85
logErrorFunction · 0.85
randStringFunction · 0.70

Tested by

no test coverage detected