From d79c85af62fd9156b56c247d14342792e625ec3b Mon Sep 17 00:00:00 2001
From: Alexander Neumann <alexander@bumpern.de>
Date: Tue, 29 Dec 2015 11:24:08 +0100
Subject: [PATCH] Fix s3 tests

---
 backend/s3/config_test.go | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/backend/s3/config_test.go b/backend/s3/config_test.go
index 6b3962c94..54fc4718a 100644
--- a/backend/s3/config_test.go
+++ b/backend/s3/config_test.go
@@ -7,20 +7,21 @@ var configTests = []struct {
 	cfg Config
 }{
 	{"s3://eu-central-1/bucketname", Config{
-		URL:    "eu-central-1",
-		Bucket: "bucketname",
+		Endpoint: "eu-central-1",
+		Bucket:   "bucketname",
 	}},
 	{"s3:eu-central-1/foobar", Config{
-		URL:    "eu-central-1",
-		Bucket: "foobar",
+		Endpoint: "eu-central-1",
+		Bucket:   "foobar",
 	}},
 	{"s3:https://hostname:9999/foobar", Config{
-		URL:    "https://hostname:9999",
-		Bucket: "foobar",
+		Endpoint: "hostname:9999",
+		Bucket:   "foobar",
 	}},
 	{"s3:http://hostname:9999/foobar", Config{
-		URL:    "http://hostname:9999",
-		Bucket: "foobar",
+		Endpoint: "hostname:9999",
+		Bucket:   "foobar",
+		UseHTTP:  true,
 	}},
 }