mirror of
https://github.com/restic/restic.git
synced 2025-02-22 06:01:36 +00:00
32 lines
658 B
Go
32 lines
658 B
Go
package gs
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/restic/restic/internal/backend/test"
|
|
)
|
|
|
|
var configTests = []test.ConfigTestData[Config]{
|
|
{"gs:bucketname:/", Config{
|
|
Bucket: "bucketname",
|
|
Prefix: "",
|
|
Connections: 5,
|
|
Region: "us",
|
|
}},
|
|
{"gs:bucketname:/prefix/directory", Config{
|
|
Bucket: "bucketname",
|
|
Prefix: "prefix/directory",
|
|
Connections: 5,
|
|
Region: "us",
|
|
}},
|
|
{"gs:bucketname:/prefix/directory/", Config{
|
|
Bucket: "bucketname",
|
|
Prefix: "prefix/directory",
|
|
Connections: 5,
|
|
Region: "us",
|
|
}},
|
|
}
|
|
|
|
func TestParseConfig(t *testing.T) {
|
|
test.ParseConfigTester(t, ParseConfig, configTests)
|
|
}
|