1
0
mirror of https://github.com/restic/restic.git synced 2024-07-02 08:40:55 +02:00

Fix location tests

This commit is contained in:
Alexander Neumann 2017-06-06 21:12:38 +02:00
parent aa5bc39311
commit 48c1e7b00d

View File

@ -123,6 +123,7 @@ var parseTests = []struct {
Endpoint: "eu-central-1",
Bucket: "bucketname",
Prefix: "restic",
Connections: 20,
},
},
},
@ -133,6 +134,7 @@ var parseTests = []struct {
Endpoint: "hostname.foo",
Bucket: "bucketname",
Prefix: "restic",
Connections: 20,
},
},
},
@ -143,6 +145,7 @@ var parseTests = []struct {
Endpoint: "hostname.foo",
Bucket: "bucketname",
Prefix: "prefix/directory",
Connections: 20,
},
},
},
@ -153,6 +156,7 @@ var parseTests = []struct {
Endpoint: "eu-central-1",
Bucket: "repo",
Prefix: "restic",
Connections: 20,
},
},
},
@ -163,6 +167,7 @@ var parseTests = []struct {
Endpoint: "eu-central-1",
Bucket: "repo",
Prefix: "prefix/directory",
Connections: 20,
},
},
},
@ -173,6 +178,7 @@ var parseTests = []struct {
Endpoint: "hostname.foo",
Bucket: "repo",
Prefix: "restic",
Connections: 20,
},
},
},
@ -183,6 +189,7 @@ var parseTests = []struct {
Endpoint: "hostname.foo",
Bucket: "repo",
Prefix: "prefix/directory",
Connections: 20,
},
},
},
@ -194,6 +201,7 @@ var parseTests = []struct {
Bucket: "repo",
Prefix: "restic",
UseHTTP: true,
Connections: 20,
},
},
},
@ -203,6 +211,7 @@ var parseTests = []struct {
Config: swift.Config{
Container: "container17",
Prefix: "",
Connections: 20,
},
},
},
@ -212,6 +221,7 @@ var parseTests = []struct {
Config: swift.Config{
Container: "container17",
Prefix: "prefix97",
Connections: 20,
},
},
},
@ -220,6 +230,7 @@ var parseTests = []struct {
Location{Scheme: "rest",
Config: rest.Config{
URL: parseURL("http://hostname.foo:1234/"),
Connections: 20,
},
},
},