forked from TrueCloudLab/frostfs-node
parent
08bdd0d561
commit
468caa83d9
4 changed files with 8 additions and 8 deletions
|
@ -3,9 +3,9 @@ package engine
|
||||||
import (
|
import (
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
|
||||||
core "github.com/nspcc-dev/neofs-node/pkg/core/object"
|
core "github.com/nspcc-dev/neofs-node/pkg/core/object"
|
||||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/shard"
|
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/shard"
|
||||||
|
"github.com/nspcc-dev/neofs-sdk-go/object"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Cursor is a type for continuous object listing.
|
// Cursor is a type for continuous object listing.
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
cidtest "github.com/nspcc-dev/neofs-api-go/pkg/container/id/test"
|
|
||||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
|
||||||
core "github.com/nspcc-dev/neofs-node/pkg/core/object"
|
core "github.com/nspcc-dev/neofs-node/pkg/core/object"
|
||||||
|
cidtest "github.com/nspcc-dev/neofs-sdk-go/container/id/test"
|
||||||
|
"github.com/nspcc-dev/neofs-sdk-go/object"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ func TestListWithCursor(t *testing.T) {
|
||||||
got := make([]*object.Address, 0, total)
|
got := make([]*object.Address, 0, total)
|
||||||
|
|
||||||
for i := 0; i < total; i++ {
|
for i := 0; i < total; i++ {
|
||||||
containerID := cidtest.Generate()
|
containerID := cidtest.GenerateID()
|
||||||
obj := generateRawObjectWithCID(t, containerID)
|
obj := generateRawObjectWithCID(t, containerID)
|
||||||
prm := new(PutPrm).WithObject(obj.Object())
|
prm := new(PutPrm).WithObject(obj.Object())
|
||||||
_, err := e.Put(prm)
|
_, err := e.Put(prm)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package meta
|
package meta
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
|
||||||
core "github.com/nspcc-dev/neofs-node/pkg/core/object"
|
core "github.com/nspcc-dev/neofs-node/pkg/core/object"
|
||||||
|
"github.com/nspcc-dev/neofs-sdk-go/object"
|
||||||
"go.etcd.io/bbolt"
|
"go.etcd.io/bbolt"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
cidtest "github.com/nspcc-dev/neofs-api-go/pkg/container/id/test"
|
|
||||||
objectSDK "github.com/nspcc-dev/neofs-api-go/pkg/object"
|
|
||||||
core "github.com/nspcc-dev/neofs-node/pkg/core/object"
|
core "github.com/nspcc-dev/neofs-node/pkg/core/object"
|
||||||
meta "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/metabase"
|
meta "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/metabase"
|
||||||
|
cidtest "github.com/nspcc-dev/neofs-sdk-go/container/id/test"
|
||||||
|
objectSDK "github.com/nspcc-dev/neofs-sdk-go/object"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ func TestLisObjectsWithCursor(t *testing.T) {
|
||||||
|
|
||||||
// fill metabase with objects
|
// fill metabase with objects
|
||||||
for i := 0; i < containers; i++ {
|
for i := 0; i < containers; i++ {
|
||||||
containerID := cidtest.Generate()
|
containerID := cidtest.GenerateID()
|
||||||
|
|
||||||
// add one regular object
|
// add one regular object
|
||||||
obj := generateRawObjectWithCID(t, containerID)
|
obj := generateRawObjectWithCID(t, containerID)
|
||||||
|
|
Loading…
Reference in a new issue