forked from TrueCloudLab/frostfs-api-go
[#155] sdk/eacl: Fix package cross dependency
Remove the usage of object package constants from eacl unit tests. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
c66b23995c
commit
b991e014a9
2 changed files with 2 additions and 4 deletions
|
@ -3,7 +3,6 @@ package eacl
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||||
v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
@ -11,7 +10,7 @@ import (
|
|||
func TestFilter(t *testing.T) {
|
||||
filter := &Filter{
|
||||
from: HeaderFromObject,
|
||||
name: object.HdrSysNamePayloadLength,
|
||||
name: "some name",
|
||||
matcher: MatchStringEqual,
|
||||
value: "200",
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ import (
|
|||
"crypto/ecdsa"
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||||
v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
|
||||
"github.com/nspcc-dev/neofs-crypto/test"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -63,7 +62,7 @@ func TestRecord_AddFilter(t *testing.T) {
|
|||
filters := []Filter{
|
||||
{
|
||||
from: HeaderFromObject,
|
||||
name: object.HdrSysNameCID,
|
||||
name: "some name",
|
||||
matcher: MatchStringEqual,
|
||||
value: "ContainerID",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue