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 (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
|
||||||
v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
|
v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
@ -11,7 +10,7 @@ import (
|
||||||
func TestFilter(t *testing.T) {
|
func TestFilter(t *testing.T) {
|
||||||
filter := &Filter{
|
filter := &Filter{
|
||||||
from: HeaderFromObject,
|
from: HeaderFromObject,
|
||||||
name: object.HdrSysNamePayloadLength,
|
name: "some name",
|
||||||
matcher: MatchStringEqual,
|
matcher: MatchStringEqual,
|
||||||
value: "200",
|
value: "200",
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"crypto/ecdsa"
|
"crypto/ecdsa"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
|
||||||
v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
|
v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
|
||||||
"github.com/nspcc-dev/neofs-crypto/test"
|
"github.com/nspcc-dev/neofs-crypto/test"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
@ -63,7 +62,7 @@ func TestRecord_AddFilter(t *testing.T) {
|
||||||
filters := []Filter{
|
filters := []Filter{
|
||||||
{
|
{
|
||||||
from: HeaderFromObject,
|
from: HeaderFromObject,
|
||||||
name: object.HdrSysNameCID,
|
name: "some name",
|
||||||
matcher: MatchStringEqual,
|
matcher: MatchStringEqual,
|
||||||
value: "ContainerID",
|
value: "ContainerID",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue