diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-02-02 09:32:00 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-02-02 09:32:00 -0500 |
commit | 701d1ab638b23c24877fc41824add66232446676 (patch) | |
tree | ec120c88d38ac9d38d9eabdd3270b52bb6ac9d96 /vendor/github.com/minio/minio-go/api_functional_v2_test.go | |
parent | ca3211bc04f6dea34e8168217182637d1419f998 (diff) | |
download | chat-701d1ab638b23c24877fc41824add66232446676.tar.gz chat-701d1ab638b23c24877fc41824add66232446676.tar.bz2 chat-701d1ab638b23c24877fc41824add66232446676.zip |
Updating server dependancies (#5249)
Diffstat (limited to 'vendor/github.com/minio/minio-go/api_functional_v2_test.go')
-rw-r--r-- | vendor/github.com/minio/minio-go/api_functional_v2_test.go | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/vendor/github.com/minio/minio-go/api_functional_v2_test.go b/vendor/github.com/minio/minio-go/api_functional_v2_test.go index 2084ffef7..23713732a 100644 --- a/vendor/github.com/minio/minio-go/api_functional_v2_test.go +++ b/vendor/github.com/minio/minio-go/api_functional_v2_test.go @@ -42,10 +42,10 @@ func TestMakeBucketErrorV2(t *testing.T) { // Instantiate new minio client object. c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -88,10 +88,10 @@ func TestGetObjectClosedTwiceV2(t *testing.T) { // Instantiate new minio client object. c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -168,10 +168,10 @@ func TestRemovePartiallyUploadedV2(t *testing.T) { // Instantiate new minio client object. c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -238,10 +238,10 @@ func TestResumablePutObjectV2(t *testing.T) { // Instantiate new minio client object. c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -350,10 +350,10 @@ func TestFPutObjectV2(t *testing.T) { // Instantiate new minio client object. c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -499,10 +499,10 @@ func TestResumableFPutObjectV2(t *testing.T) { // Instantiate new minio client object. c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -577,10 +577,10 @@ func TestMakeBucketRegionsV2(t *testing.T) { // Instantiate new minio client object. c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -628,10 +628,10 @@ func TestGetObjectReadSeekFunctionalV2(t *testing.T) { // Instantiate new minio client object. c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -761,10 +761,10 @@ func TestGetObjectReadAtFunctionalV2(t *testing.T) { // Instantiate new minio client object. c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -897,10 +897,10 @@ func TestCopyObjectV2(t *testing.T) { // Instantiate new minio client object c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) @@ -1014,10 +1014,10 @@ func TestFunctionalV2(t *testing.T) { rand.Seed(time.Now().Unix()) c, err := NewV2( - "s3.amazonaws.com", + os.Getenv("S3_ADDRESS"), os.Getenv("ACCESS_KEY"), os.Getenv("SECRET_KEY"), - true, + mustParseBool(os.Getenv("S3_SECURE")), ) if err != nil { t.Fatal("Error:", err) |