mirror of
https://github.com/restic/restic.git
synced 2026-10-10 20:17:12 +00:00
location: fix tests
This commit is contained in:
1 parent
5722ccfcda
commit
338ad42273
1 file changed
+15
-8
@@ -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,
|
||||
}},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user