2022-08-22 11:47:05 +00:00
|
|
|
package blobstor
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"path/filepath"
|
|
|
|
"strconv"
|
|
|
|
"testing"
|
|
|
|
|
2022-12-23 17:35:35 +00:00
|
|
|
"github.com/TrueCloudLab/frostfs-node/pkg/local_object_storage/internal/storagetest"
|
2022-08-22 11:47:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestGeneric(t *testing.T) {
|
|
|
|
defer func() { _ = os.RemoveAll(t.Name()) }()
|
|
|
|
|
|
|
|
var n int
|
|
|
|
newMetabase := func(t *testing.T) storagetest.Component {
|
|
|
|
n++
|
|
|
|
dir := filepath.Join(t.Name(), strconv.Itoa(n))
|
|
|
|
return New(
|
|
|
|
WithStorages(defaultStorages(dir, 128)))
|
|
|
|
}
|
|
|
|
|
|
|
|
storagetest.TestAll(t, newMetabase)
|
|
|
|
}
|