[#293] pkg/eacl: Do not set token and signature in Table generator

These fields aren't part of the message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-06-08 15:04:49 +03:00 committed by Alex Vanin
parent 318755e9de
commit f2c9584fbc

View file

@ -4,7 +4,6 @@ import (
"github.com/nspcc-dev/neofs-api-go/pkg/acl/eacl" "github.com/nspcc-dev/neofs-api-go/pkg/acl/eacl"
cidtest "github.com/nspcc-dev/neofs-api-go/pkg/container/id/test" cidtest "github.com/nspcc-dev/neofs-api-go/pkg/container/id/test"
ownertest "github.com/nspcc-dev/neofs-api-go/pkg/owner/test" ownertest "github.com/nspcc-dev/neofs-api-go/pkg/owner/test"
sessiontest "github.com/nspcc-dev/neofs-api-go/pkg/session/test"
refstest "github.com/nspcc-dev/neofs-api-go/pkg/test" refstest "github.com/nspcc-dev/neofs-api-go/pkg/test"
) )
@ -38,11 +37,9 @@ func Table() *eacl.Table {
x := eacl.NewTable() x := eacl.NewTable()
x.SetCID(cidtest.Generate()) x.SetCID(cidtest.Generate())
x.SetSessionToken(sessiontest.Generate())
x.AddRecord(Record()) x.AddRecord(Record())
x.AddRecord(Record()) x.AddRecord(Record())
x.SetVersion(*refstest.Version()) x.SetVersion(*refstest.Version())
x.SetSignature(refstest.Signature())
return x return x
} }