2022-08-22 11:44:22 +00:00
|
|
|
package meta
|
|
|
|
|
|
|
|
import (
|
|
|
|
"path/filepath"
|
|
|
|
"testing"
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/internal/storagetest"
|
2022-08-22 11:44:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestGeneric(t *testing.T) {
|
2023-05-05 14:02:27 +00:00
|
|
|
t.Parallel()
|
|
|
|
|
2022-08-22 11:44:22 +00:00
|
|
|
newMetabase := func(t *testing.T) storagetest.Component {
|
|
|
|
return New(
|
|
|
|
WithEpochState(epochStateImpl{}),
|
2023-08-14 11:01:39 +00:00
|
|
|
WithPath(filepath.Join(t.TempDir(), "metabase")))
|
2022-08-22 11:44:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
storagetest.TestAll(t, newMetabase)
|
|
|
|
}
|