[#1] Add frostfs backend
Some checks failed
test / lint (pull_request) Failing after 1m4s
test / Linux Go 1.19.x (pull_request) Failing after 3m1s
test / docker (pull_request) Failing after 4m33s
test / Linux Go 1.22.x (pull_request) Failing after 4m40s
test / Cross Compile for subset 1/3 (pull_request) Successful in 5m43s
test / Linux Go 1.20.x (pull_request) Failing after 6m17s
test / Cross Compile for subset 2/3 (pull_request) Failing after 6m32s
test / Linux Go 1.21.x (pull_request) Failing after 6m45s
test / Cross Compile for subset 0/3 (pull_request) Successful in 9m21s
test / Linux (race) Go 1.22.x (pull_request) Failing after 12m36s
test / Windows Go 1.22.x (pull_request) Has been cancelled
test / macOS Go 1.22.x (pull_request) Has been cancelled
test / Analyze results (pull_request) Has been cancelled
Some checks failed
test / lint (pull_request) Failing after 1m4s
test / Linux Go 1.19.x (pull_request) Failing after 3m1s
test / docker (pull_request) Failing after 4m33s
test / Linux Go 1.22.x (pull_request) Failing after 4m40s
test / Cross Compile for subset 1/3 (pull_request) Successful in 5m43s
test / Linux Go 1.20.x (pull_request) Failing after 6m17s
test / Cross Compile for subset 2/3 (pull_request) Failing after 6m32s
test / Linux Go 1.21.x (pull_request) Failing after 6m45s
test / Cross Compile for subset 0/3 (pull_request) Successful in 9m21s
test / Linux (race) Go 1.22.x (pull_request) Failing after 12m36s
test / Windows Go 1.22.x (pull_request) Has been cancelled
test / macOS Go 1.22.x (pull_request) Has been cancelled
test / Analyze results (pull_request) Has been cancelled
Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
This commit is contained in:
parent
bc64921a8e
commit
ca638bd459
8 changed files with 934 additions and 9 deletions
28
internal/backend/frostfs/config_test.go
Normal file
28
internal/backend/frostfs/config_test.go
Normal file
|
@ -0,0 +1,28 @@
|
|||
package frostfs
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestParseConfig(t *testing.T) {
|
||||
for i, test := range []struct {
|
||||
s string
|
||||
cfg Config
|
||||
}{
|
||||
{"frostfs:grpcs://s01.frostfs.devenv:8080/container-name", Config{
|
||||
Endpoint: "grpcs://s01.frostfs.devenv:8080",
|
||||
Container: "container-name",
|
||||
Connections: 5,
|
||||
}},
|
||||
} {
|
||||
cfg, err := ParseConfig(test.s)
|
||||
if err != nil {
|
||||
t.Errorf("test %d:%s failed: %v", i, test.s, err)
|
||||
continue
|
||||
}
|
||||
|
||||
if *cfg != test.cfg {
|
||||
t.Errorf("test %d:\ninput:\n %s\n wrong config, want:\n %v\ngot:\n %v",
|
||||
i, test.s, test.cfg, cfg)
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue