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

Function testEncryptedSSECToUnencryptedCopyObject

functional_tests.go:9936–9954  ·  view source on GitHub ↗

Test encrypted copy object

()

Source from the content-addressed store, hash-verified

9934
9935// Test encrypted copy object
9936func testEncryptedSSECToUnencryptedCopyObject() {
9937 // initialize logging params
9938 startTime := time.Now()
9939 testName := getFuncName()
9940 function := "CopyObject(destination, source)"
9941 args := map[string]interface{}{}
9942
9943 c, err := NewClient(ClientConfig{TrailingHeaders: true})
9944 if err != nil {
9945 logError(testName, function, args, startTime, "", "MinIO v2 client object creation failed", err)
9946 return
9947 }
9948 // Generate a new random bucket name.
9949 bucketName := randString(60, rand.NewSource(time.Now().UnixNano()), "minio-go-test-")
9950
9951 sseSrc := encrypt.DefaultPBKDF([]byte("correct horse battery staple"), []byte(bucketName+"srcObject"))
9952 var sseDst encrypt.ServerSide
9953 testEncryptedCopyObjectWrapper(c, bucketName, sseSrc, sseDst)
9954}
9955
9956// Test encrypted copy object
9957func 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