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

Function testEncryptedSSECToUnencryptedCopyObject

functional_tests.go:10040–10058  ·  functional_tests.go::testEncryptedSSECToUnencryptedCopyObject

Test encrypted copy object

()

Source from the content-addressed store, hash-verified

10038
10039// Test encrypted copy object
10040func testEncryptedSSECToUnencryptedCopyObject() {
10041 // initialize logging params
10042 startTime := time.Now()
10043 testName := getFuncName()
10044 function := "CopyObject(destination, source)"
10045 args := map[string]interface{}{}
10046
10047 c, err := NewClient(ClientConfig{TrailingHeaders: true})
10048 if err != nil {
10049 logError(testName, function, args, startTime, "", "MinIO v2 client object creation failed", err)
10050 return
10051 }
10052 // Generate a new random bucket name.
10053 bucketName := randString(60, rand.NewSource(time.Now().UnixNano()), "minio-go-test-")
10054
10055 sseSrc := encrypt.DefaultPBKDF([]byte("correct horse battery staple"), []byte(bucketName+"srcObject"))
10056 var sseDst encrypt.ServerSide
10057 testEncryptedCopyObjectWrapper(c, bucketName, sseSrc, sseDst)
10058}
10059
10060// Test encrypted copy object
10061func testEncryptedSSES3ToSSECCopyObject() {

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