From 8d6a70b9dd964448dd76b49f18b7ef9d914118d4 Mon Sep 17 00:00:00 2001 From: Minio Trusted Date: Sun, 11 Mar 2018 17:34:23 -0700 Subject: [PATCH] disable key rotation --- functional_tests.go | 70 ++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/functional_tests.go b/functional_tests.go index acf5cdb798..0f0bbd5e81 100644 --- a/functional_tests.go +++ b/functional_tests.go @@ -5859,40 +5859,40 @@ func testEncryptedCopyObjectWrapper(c *minio.Client) { reader.Close() // Test key rotation for source object in-place. - dst, err = minio.NewDestinationInfo(bucketName, "srcObject", &key2, nil) - if err != nil { - logError(testName, function, args, startTime, "", "NewDestinationInfo failed", err) - return - } - args["destination"] = dst - - err = c.CopyObject(dst, src) - if err != nil { - logError(testName, function, args, startTime, "", "CopyObject failed", err) - return - } - - // Get copied object and check if content is equal - opts = minio.GetObjectOptions{} - for k, v := range key2.GetSSEHeaders() { - opts.Set(k, v) - } - reader, err = c.GetObject(bucketName, "srcObject", opts) - if err != nil { - logError(testName, function, args, startTime, "", "GetObject failed", err) - return - } - - decBytes, err = ioutil.ReadAll(reader) - if err != nil { - logError(testName, function, args, startTime, "", "ReadAll failed", err) - return - } - if !bytes.Equal(decBytes, buf) { - logError(testName, function, args, startTime, "", "Downloaded object mismatched for encrypted object", err) - return - } - reader.Close() + // dst, err = minio.NewDestinationInfo(bucketName, "srcObject", &key2, nil) + // if err != nil { + // logError(testName, function, args, startTime, "", "NewDestinationInfo failed", err) + // return + // } + // args["destination"] = dst + + // err = c.CopyObject(dst, src) + // if err != nil { + // logError(testName, function, args, startTime, "", "CopyObject failed", err) + // return + // } + + // // Get copied object and check if content is equal + // opts = minio.GetObjectOptions{} + // for k, v := range key2.GetSSEHeaders() { + // opts.Set(k, v) + // } + // reader, err = c.GetObject(bucketName, "srcObject", opts) + // if err != nil { + // logError(testName, function, args, startTime, "", "GetObject failed", err) + // return + // } + + // decBytes, err = ioutil.ReadAll(reader) + // if err != nil { + // logError(testName, function, args, startTime, "", "ReadAll failed", err) + // return + // } + // if !bytes.Equal(decBytes, buf) { + // logError(testName, function, args, startTime, "", "Downloaded object mismatched for encrypted object", err) + // return + // } + // reader.Close() // Test in-place decryption. dst, err = minio.NewDestinationInfo(bucketName, "srcObject", nil, nil) @@ -5902,7 +5902,7 @@ func testEncryptedCopyObjectWrapper(c *minio.Client) { } args["destination"] = dst - src = minio.NewSourceInfo(bucketName, "srcObject", &key2) + src = minio.NewSourceInfo(bucketName, "srcObject", &key1) args["source"] = src err = c.CopyObject(dst, src) if err != nil {