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

Function testEncryptedSSES3ToSSECCopyObject

functional_tests.go:10061–10079  ·  view source on GitHub ↗

Test encrypted copy object

()

Source from the content-addressed store, hash-verified

10059
10060// Test encrypted copy object
10061func testEncryptedSSES3ToSSECCopyObject() {
10062 // initialize logging params
10063 startTime := time.Now()
10064 testName := getFuncName()
10065 function := "CopyObject(destination, source)"
10066 args := map[string]interface{}{}
10067
10068 c, err := NewClient(ClientConfig{TrailingHeaders: true})
10069 if err != nil {
10070 logError(testName, function, args, startTime, "", "MinIO v2 client object creation failed", err)
10071 return
10072 }
10073 // Generate a new random bucket name.
10074 bucketName := randString(60, rand.NewSource(time.Now().UnixNano()), "minio-go-test-")
10075
10076 sseSrc := encrypt.NewSSE()
10077 sseDst := encrypt.DefaultPBKDF([]byte("correct horse battery staple"), []byte(bucketName+"dstObject"))
10078 testEncryptedCopyObjectWrapper(c, bucketName, sseSrc, sseDst)
10079}
10080
10081// Test encrypted copy object
10082func testEncryptedSSES3ToSSES3CopyObject() {

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