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

Function testUnencryptedToUnencryptedCopyObject

functional_tests.go:9978–9995  ·  view source on GitHub ↗

Test encrypted copy object

()

Source from the content-addressed store, hash-verified

9976
9977// Test encrypted copy object
9978func testUnencryptedToUnencryptedCopyObject() {
9979 // initialize logging params
9980 startTime := time.Now()
9981 testName := getFuncName()
9982 function := "CopyObject(destination, source)"
9983 args := map[string]interface{}{}
9984
9985 c, err := NewClient(ClientConfig{TrailingHeaders: true})
9986 if err != nil {
9987 logError(testName, function, args, startTime, "", "MinIO v2 client object creation failed", err)
9988 return
9989 }
9990 // Generate a new random bucket name.
9991 bucketName := randString(60, rand.NewSource(time.Now().UnixNano()), "minio-go-test-")
9992
9993 var sseSrc, sseDst encrypt.ServerSide
9994 testEncryptedCopyObjectWrapper(c, bucketName, sseSrc, sseDst)
9995}
9996
9997// Test encrypted copy object
9998func testEncryptedSSECToSSECCopyObject() {

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