[#1412] engine: Add IsIndexedContainer
flag
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
899cd55c27
commit
1b520f7973
19 changed files with 182 additions and 50 deletions
|
@ -97,7 +97,7 @@ func TestLockUserScenario(t *testing.T) {
|
|||
id, _ := obj.ID()
|
||||
objAddr.SetObject(id)
|
||||
|
||||
err = Put(context.Background(), e, obj)
|
||||
err = Put(context.Background(), e, obj, false)
|
||||
require.NoError(t, err)
|
||||
|
||||
// 2.
|
||||
|
@ -105,7 +105,7 @@ func TestLockUserScenario(t *testing.T) {
|
|||
locker.WriteMembers([]oid.ID{id})
|
||||
objectSDK.WriteLock(lockerObj, locker)
|
||||
|
||||
err = Put(context.Background(), e, lockerObj)
|
||||
err = Put(context.Background(), e, lockerObj, false)
|
||||
require.NoError(t, err)
|
||||
|
||||
err = e.Lock(context.Background(), cnr, lockerID, []oid.ID{id})
|
||||
|
@ -124,7 +124,7 @@ func TestLockUserScenario(t *testing.T) {
|
|||
tombObj.SetID(tombForLockID)
|
||||
tombObj.SetAttributes(a)
|
||||
|
||||
err = Put(context.Background(), e, tombObj)
|
||||
err = Put(context.Background(), e, tombObj, false)
|
||||
require.NoError(t, err)
|
||||
|
||||
inhumePrm.WithTarget(tombForLockAddr, lockerAddr)
|
||||
|
@ -177,7 +177,7 @@ func TestLockExpiration(t *testing.T) {
|
|||
// 1.
|
||||
obj := testutil.GenerateObjectWithCID(cnr)
|
||||
|
||||
err = Put(context.Background(), e, obj)
|
||||
err = Put(context.Background(), e, obj, false)
|
||||
require.NoError(t, err)
|
||||
|
||||
// 2.
|
||||
|
@ -189,7 +189,7 @@ func TestLockExpiration(t *testing.T) {
|
|||
lock.SetType(objectSDK.TypeLock)
|
||||
lock.SetAttributes(a)
|
||||
|
||||
err = Put(context.Background(), e, lock)
|
||||
err = Put(context.Background(), e, lock, false)
|
||||
require.NoError(t, err)
|
||||
|
||||
id, _ := obj.ID()
|
||||
|
@ -254,14 +254,14 @@ func TestLockForceRemoval(t *testing.T) {
|
|||
// 1.
|
||||
obj := testutil.GenerateObjectWithCID(cnr)
|
||||
|
||||
err = Put(context.Background(), e, obj)
|
||||
err = Put(context.Background(), e, obj, false)
|
||||
require.NoError(t, err)
|
||||
|
||||
// 2.
|
||||
lock := testutil.GenerateObjectWithCID(cnr)
|
||||
lock.SetType(objectSDK.TypeLock)
|
||||
|
||||
err = Put(context.Background(), e, lock)
|
||||
err = Put(context.Background(), e, lock, false)
|
||||
require.NoError(t, err)
|
||||
|
||||
id, _ := obj.ID()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue