From 338ad422738d31623b550c7a3bbe764931f03ed6 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 2 Jan 2016 15:33:17 +0100 Subject: [PATCH] location: fix tests --- location/location_test.go | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/location/location_test.go b/location/location_test.go index 702b2651e..b0303fad1 100644 --- a/location/location_test.go +++ b/location/location_test.go @@ -46,26 +46,33 @@ var parseTests = []struct { {"s3://eu-central-1/bucketname", Location{Scheme: "s3", Config: s3.Config{ - Region: "eu-central-1", - Bucket: "bucketname", + Endpoint: "eu-central-1", + Bucket: "bucketname", }}, }, {"s3://hostname.foo/bucketname", Location{Scheme: "s3", Config: s3.Config{ - Region: "hostname.foo", - Bucket: "bucketname", + Endpoint: "hostname.foo", + Bucket: "bucketname", }}, }, {"s3:eu-central-1/repo", Location{Scheme: "s3", Config: s3.Config{ - Region: "eu-central-1", - Bucket: "repo", + Endpoint: "eu-central-1", + Bucket: "repo", }}, }, {"s3:https://hostname.foo/repo", Location{Scheme: "s3", Config: s3.Config{ - URL: "https://hostname.foo", - Bucket: "repo", + Endpoint: "hostname.foo", + Bucket: "repo", + }}, + }, + {"s3:http://hostname.foo/repo", Location{Scheme: "s3", + Config: s3.Config{ + Endpoint: "hostname.foo", + Bucket: "repo", + UseHTTP: true, }}, }, }