From b991e014a951fcd94a5aaa2cf9d850a978a2cb93 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 22 Sep 2020 13:55:17 +0300 Subject: [PATCH] [#155] sdk/eacl: Fix package cross dependency Remove the usage of object package constants from eacl unit tests. Signed-off-by: Leonard Lyubich --- pkg/acl/eacl/filter_test.go | 3 +-- pkg/acl/eacl/record_test.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/acl/eacl/filter_test.go b/pkg/acl/eacl/filter_test.go index 17806c2..a38d392 100644 --- a/pkg/acl/eacl/filter_test.go +++ b/pkg/acl/eacl/filter_test.go @@ -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", } diff --git a/pkg/acl/eacl/record_test.go b/pkg/acl/eacl/record_test.go index 1ed7263..c91042c 100644 --- a/pkg/acl/eacl/record_test.go +++ b/pkg/acl/eacl/record_test.go @@ -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", },