From a12c507bec2d9c742413a52bf0309aa876a1df9c Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 15 Jun 2019 10:12:32 -0700 Subject: [PATCH] Update minio-go to v6.0.29 (#2799) --- cmd/find_test.go | 20 ++++++++++---------- cmd/utils_test.go | 10 +++++----- go.mod | 2 +- go.sum | 2 ++ 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/cmd/find_test.go b/cmd/find_test.go index 3964e973..1a02c9b1 100644 --- a/cmd/find_test.go +++ b/cmd/find_test.go @@ -29,61 +29,61 @@ func TestMatchFind(t *testing.T) { // List of various contexts used in each tests, // tests are run in the same order as this list. var listFindContexts = []*findContext{ - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, ignorePattern: "*.go", }, - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, namePattern: "console", }, - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, pathPattern: "*console*", }, - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, regexPattern: `^(\d+\.){3}\d+$`, }, - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, olderThan: "1d", }, - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, newerThan: "32000d", }, - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, largerSize: 1024 * 1024, }, - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, smallerSize: 1024, }, - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, ignorePattern: "*.txt", }, - &findContext{ + { clnt: &s3Client{ targetURL: &clientURL{}, }, diff --git a/cmd/utils_test.go b/cmd/utils_test.go index 4740e3bc..743560fc 100644 --- a/cmd/utils_test.go +++ b/cmd/utils_test.go @@ -107,7 +107,7 @@ func TestParseEncryptionKeys(t *testing.T) { }{ { encryptionKey: "myminio1/test2=32byteslongsecretkeymustbegiven2", - expectedEncMap: map[string][]prefixSSEPair{"myminio1": []prefixSSEPair{prefixSSEPair{ + expectedEncMap: map[string][]prefixSSEPair{"myminio1": {{ Prefix: "myminio1/test2", SSE: sseKey1, }}}, @@ -120,7 +120,7 @@ func TestParseEncryptionKeys(t *testing.T) { }, { encryptionKey: "myminio1/test2=32byteslongsecretkey,ustbegiven1", - expectedEncMap: map[string][]prefixSSEPair{"myminio1": []prefixSSEPair{prefixSSEPair{ + expectedEncMap: map[string][]prefixSSEPair{"myminio1": {{ Prefix: "myminio1/test2", SSE: sseCommaKey1, }}}, @@ -128,7 +128,7 @@ func TestParseEncryptionKeys(t *testing.T) { }, { encryptionKey: "myminio1/test2=32byteslongsecret mustbegiven1", - expectedEncMap: map[string][]prefixSSEPair{"myminio1": []prefixSSEPair{prefixSSEPair{ + expectedEncMap: map[string][]prefixSSEPair{"myminio1": {{ Prefix: "myminio1/test2", SSE: sseSpaceKey1, }}}, @@ -136,10 +136,10 @@ func TestParseEncryptionKeys(t *testing.T) { }, { encryptionKey: "myminio1/test2=32byteslongsecretkeymustbegiven2,myminio1/test1/a=32byteslongsecretkeymustbegiven1", - expectedEncMap: map[string][]prefixSSEPair{"myminio1": []prefixSSEPair{prefixSSEPair{ + expectedEncMap: map[string][]prefixSSEPair{"myminio1": {{ Prefix: "myminio1/test1/a", SSE: sseKey2, - }, prefixSSEPair{ + }, { Prefix: "myminio1/test2", SSE: sseKey1, }}}, diff --git a/go.mod b/go.mod index 25948c3c..0ca0c66e 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/minio/cli v1.20.0 github.com/minio/minio v0.0.0-20190611004433-002a205c9ce5 github.com/minio/minio-go v0.0.0-20190327203652-5325257a208f // indirect - github.com/minio/minio-go/v6 v6.0.28 + github.com/minio/minio-go/v6 v6.0.29 github.com/minio/sha256-simd v0.1.0 github.com/mitchellh/go-homedir v1.1.0 github.com/pkg/profile v1.3.0 diff --git a/go.sum b/go.sum index 2c4e2db7..b1b8ccff 100644 --- a/go.sum +++ b/go.sum @@ -351,6 +351,8 @@ github.com/minio/minio-go v0.0.0-20190327203652-5325257a208f/go.mod h1:/haSOWG8h github.com/minio/minio-go/v6 v6.0.26/go.mod h1:vaNT59cWULS37E+E9zkuN/BVnKHyXtVGS+b04Boc66Y= github.com/minio/minio-go/v6 v6.0.28 h1:RIsoxMaljP2euGbu2r0gBC0UNn70l2gzHjifU6DhE0c= github.com/minio/minio-go/v6 v6.0.28/go.mod h1:vaNT59cWULS37E+E9zkuN/BVnKHyXtVGS+b04Boc66Y= +github.com/minio/minio-go/v6 v6.0.29 h1:p4YPxK1beY13reFJjCE5QwCnXUMT9D5sV5wl0BSy5Xo= +github.com/minio/minio-go/v6 v6.0.29/go.mod h1:vaNT59cWULS37E+E9zkuN/BVnKHyXtVGS+b04Boc66Y= github.com/minio/parquet-go v0.0.0-20190318185229-9d767baf1679/go.mod h1:J+goXSuzlte5imWMqb6cUWC/tbYYysUHctwmKXomYzM= github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U=