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