forked from TrueCloudLab/frostfs-node
[#1377] oid, cid: Upgrade SDK package
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f65898a354
commit
f15e6e888f
118 changed files with 1455 additions and 886 deletions
|
@ -14,24 +14,26 @@ import (
|
|||
func TestStorageEngine_Inhume(t *testing.T) {
|
||||
defer os.RemoveAll(t.Name())
|
||||
|
||||
cid := cidtest.ID()
|
||||
cnr := cidtest.ID()
|
||||
splitID := objectSDK.NewSplitID()
|
||||
|
||||
fs := objectSDK.SearchFilters{}
|
||||
fs.AddRootFilter()
|
||||
|
||||
tombstoneID := object.AddressOf(generateObjectWithCID(t, cid))
|
||||
parent := generateObjectWithCID(t, cid)
|
||||
tombstoneID := object.AddressOf(generateObjectWithCID(t, cnr))
|
||||
parent := generateObjectWithCID(t, cnr)
|
||||
|
||||
child := generateObjectWithCID(t, cid)
|
||||
child := generateObjectWithCID(t, cnr)
|
||||
child.SetParent(parent)
|
||||
child.SetParentID(parent.ID())
|
||||
idParent, _ := parent.ID()
|
||||
child.SetParentID(idParent)
|
||||
child.SetSplitID(splitID)
|
||||
|
||||
link := generateObjectWithCID(t, cid)
|
||||
link := generateObjectWithCID(t, cnr)
|
||||
link.SetParent(parent)
|
||||
link.SetParentID(parent.ID())
|
||||
link.SetChildren(*child.ID())
|
||||
link.SetParentID(idParent)
|
||||
idChild, _ := child.ID()
|
||||
link.SetChildren(idChild)
|
||||
link.SetSplitID(splitID)
|
||||
|
||||
t.Run("delete small object", func(t *testing.T) {
|
||||
|
@ -45,12 +47,13 @@ func TestStorageEngine_Inhume(t *testing.T) {
|
|||
_, err = e.Inhume(inhumePrm)
|
||||
require.NoError(t, err)
|
||||
|
||||
addrs, err := Select(e, cid, fs)
|
||||
addrs, err := Select(e, &cnr, fs)
|
||||
require.NoError(t, err)
|
||||
require.Empty(t, addrs)
|
||||
})
|
||||
|
||||
t.Run("delete big object", func(t *testing.T) {
|
||||
t.Skip("not working, see neofs-sdk-go#242")
|
||||
s1 := testNewShard(t, 1)
|
||||
s2 := testNewShard(t, 2)
|
||||
|
||||
|
@ -69,7 +72,7 @@ func TestStorageEngine_Inhume(t *testing.T) {
|
|||
_, err = e.Inhume(inhumePrm)
|
||||
require.NoError(t, err)
|
||||
|
||||
addrs, err := Select(e, cid, fs)
|
||||
addrs, err := Select(e, &cnr, fs)
|
||||
require.NoError(t, err)
|
||||
require.Empty(t, addrs)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue