mirror of
https://github.com/restic/restic.git
synced 2025-10-09 07:33:53 +00:00
location: Make ParseConfig-test backend agnostic
The backend specific parts of the test are now directly handled by the respective backend. Duplicate tests were removed.
This commit is contained in:
@@ -56,6 +56,24 @@ var configTests = []test.ConfigTestData[Config]{
|
||||
Prefix: "prefix/directory",
|
||||
Connections: 5,
|
||||
}},
|
||||
{S: "s3:hostname.foo/foobar", Cfg: Config{
|
||||
Endpoint: "hostname.foo",
|
||||
Bucket: "foobar",
|
||||
Prefix: "",
|
||||
Connections: 5,
|
||||
}},
|
||||
{S: "s3:hostname.foo/foobar/prefix/directory", Cfg: Config{
|
||||
Endpoint: "hostname.foo",
|
||||
Bucket: "foobar",
|
||||
Prefix: "prefix/directory",
|
||||
Connections: 5,
|
||||
}},
|
||||
{S: "s3:https://hostname/foobar", Cfg: Config{
|
||||
Endpoint: "hostname",
|
||||
Bucket: "foobar",
|
||||
Prefix: "",
|
||||
Connections: 5,
|
||||
}},
|
||||
{S: "s3:https://hostname:9999/foobar", Cfg: Config{
|
||||
Endpoint: "hostname:9999",
|
||||
Bucket: "foobar",
|
||||
|
Reference in New Issue
Block a user