forked from TrueCloudLab/frostfs-node
[#1131] *: Adopt SDK changes
`object.Address` has been moved to `object/address` `object.ID` has been moved to `object/id` Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
1c821d6c36
commit
1667ec9e6d
139 changed files with 652 additions and 562 deletions
|
@ -9,6 +9,7 @@ import (
|
|||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobstor"
|
||||
meta "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/metabase"
|
||||
objectSDK "github.com/nspcc-dev/neofs-sdk-go/object"
|
||||
addressSDK "github.com/nspcc-dev/neofs-sdk-go/object/address"
|
||||
objecttest "github.com/nspcc-dev/neofs-sdk-go/object/test"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
@ -41,7 +42,7 @@ func TestRefillMetabase(t *testing.T) {
|
|||
|
||||
type objAddr struct {
|
||||
obj *object.Object
|
||||
addr *objectSDK.Address
|
||||
addr *addressSDK.Address
|
||||
}
|
||||
|
||||
mObjs := make(map[string]objAddr)
|
||||
|
@ -72,10 +73,10 @@ func TestRefillMetabase(t *testing.T) {
|
|||
|
||||
tombObj := tombObjRaw.Object()
|
||||
|
||||
tombMembers := make([]*objectSDK.Address, 0, len(tombstone.Members()))
|
||||
tombMembers := make([]*addressSDK.Address, 0, len(tombstone.Members()))
|
||||
|
||||
for _, member := range tombstone.Members() {
|
||||
a := objectSDK.NewAddress()
|
||||
a := addressSDK.NewAddress()
|
||||
a.SetObjectID(member)
|
||||
a.SetContainerID(tombObj.ContainerID())
|
||||
|
||||
|
@ -97,7 +98,7 @@ func TestRefillMetabase(t *testing.T) {
|
|||
|
||||
var headPrm HeadPrm
|
||||
|
||||
checkObj := func(addr *objectSDK.Address, expObj *object.Object) {
|
||||
checkObj := func(addr *addressSDK.Address, expObj *object.Object) {
|
||||
res, err := sh.Head(headPrm.WithAddress(addr))
|
||||
|
||||
if expObj == nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue