forked from TrueCloudLab/frostfs-api-go
[#209] object: Support splitID
search attribute
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
79c76e87e4
commit
3d08d8140f
8 changed files with 137 additions and 13 deletions
|
@ -5,7 +5,6 @@ import (
|
|||
"crypto/sha256"
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg"
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/container"
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/owner"
|
||||
|
@ -196,9 +195,7 @@ func TestRawObject_SetSplitID(t *testing.T) {
|
|||
|
||||
require.Nil(t, obj.SplitID())
|
||||
|
||||
splitID, err := uuid.New().MarshalBinary()
|
||||
require.NoError(t, err)
|
||||
|
||||
splitID := NewSplitID()
|
||||
obj.SetSplitID(splitID)
|
||||
|
||||
require.Equal(t, obj.SplitID(), splitID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue