mirror of
https://github.com/restic/restic.git
synced 2024-12-23 08:16:36 +00:00
29 lines
655 B
Go
29 lines
655 B
Go
package azure
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/restic/restic/internal/backend/test"
|
|
)
|
|
|
|
var configTests = []test.ConfigTestData[Config]{
|
|
{S: "azure:container-name:/", Cfg: Config{
|
|
Container: "container-name",
|
|
Prefix: "",
|
|
Connections: 5,
|
|
}},
|
|
{S: "azure:container-name:/prefix/directory", Cfg: Config{
|
|
Container: "container-name",
|
|
Prefix: "prefix/directory",
|
|
Connections: 5,
|
|
}},
|
|
{S: "azure:container-name:/prefix/directory/", Cfg: Config{
|
|
Container: "container-name",
|
|
Prefix: "prefix/directory",
|
|
Connections: 5,
|
|
}},
|
|
}
|
|
|
|
func TestParseConfig(t *testing.T) {
|
|
test.ParseConfigTester(t, ParseConfig, configTests)
|
|
}
|