forked from TrueCloudLab/restic
Fix location tests
This commit is contained in:
parent
aa5bc39311
commit
48c1e7b00d
1 changed files with 41 additions and 30 deletions
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue