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

Function testUnencryptedToUnencryptedCopyObject

functional_tests.go:9874–9891  ·  view source on GitHub ↗

Test encrypted copy object

()

Source from the content-addressed store, hash-verified

9872
9873// Test encrypted copy object
9874func testUnencryptedToUnencryptedCopyObject() {
9875 // initialize logging params
9876 startTime := time.Now()
9877 testName := getFuncName()
9878 function := "CopyObject(destination, source)"
9879 args := map[string]interface{}{}
9880
9881 c, err := NewClient(ClientConfig{TrailingHeaders: true})
9882 if err != nil {
9883 logError(testName, function, args, startTime, "", "MinIO v2 client object creation failed", err)
9884 return
9885 }
9886 // Generate a new random bucket name.
9887 bucketName := randString(60, rand.NewSource(time.Now().UnixNano()), "minio-go-test-")
9888
9889 var sseSrc, sseDst encrypt.ServerSide
9890 testEncryptedCopyObjectWrapper(c, bucketName, sseSrc, sseDst)
9891}
9892
9893// Test encrypted copy object
9894func 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…