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

Function testEncryptedSSECToSSECCopyObject

functional_tests.go:9894–9912  ·  view source on GitHub ↗

Test encrypted copy object

()

Source from the content-addressed store, hash-verified

9892
9893// Test encrypted copy object
9894func testEncryptedSSECToSSECCopyObject() {
9895 // initialize logging params
9896 startTime := time.Now()
9897 testName := getFuncName()
9898 function := "CopyObject(destination, source)"
9899 args := map[string]interface{}{}
9900
9901 c, err := NewClient(ClientConfig{TrailingHeaders: true})
9902 if err != nil {
9903 logError(testName, function, args, startTime, "", "MinIO v2 client object creation failed", err)
9904 return
9905 }
9906 // Generate a new random bucket name.
9907 bucketName := randString(60, rand.NewSource(time.Now().UnixNano()), "minio-go-test-")
9908
9909 sseSrc := encrypt.DefaultPBKDF([]byte("correct horse battery staple"), []byte(bucketName+"srcObject"))
9910 sseDst := encrypt.DefaultPBKDF([]byte("correct horse battery staple"), []byte(bucketName+"dstObject"))
9911 testEncryptedCopyObjectWrapper(c, bucketName, sseSrc, sseDst)
9912}
9913
9914// Test encrypted copy object
9915func 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