From f8c34b45f30f8ef725d1350559fa4736544a2ea5 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 7 Apr 2023 08:58:28 +0300 Subject: [PATCH] [#47] eacl: Fix duplicate imports Signed-off-by: Evgenii Stratonikov --- eacl/filter_test.go | 5 ++--- eacl/target_test.go | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/eacl/filter_test.go b/eacl/filter_test.go index a7a46d2..74b9a10 100644 --- a/eacl/filter_test.go +++ b/eacl/filter_test.go @@ -4,7 +4,6 @@ import ( "strconv" "testing" - "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/acl" v2acl "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/acl" "github.com/stretchr/testify/require" ) @@ -83,8 +82,8 @@ func TestFilter_ToV2(t *testing.T) { require.Empty(t, filterV2.GetKey()) require.Empty(t, filterV2.GetValue()) - require.Equal(t, acl.HeaderTypeUnknown, filterV2.GetHeaderType()) - require.Equal(t, acl.MatchTypeUnknown, filterV2.GetMatchType()) + require.Equal(t, v2acl.HeaderTypeUnknown, filterV2.GetHeaderType()) + require.Equal(t, v2acl.MatchTypeUnknown, filterV2.GetMatchType()) }) t.Run("reserved types", func(t *testing.T) { diff --git a/eacl/target_test.go b/eacl/target_test.go index 55617f6..e226194 100644 --- a/eacl/target_test.go +++ b/eacl/target_test.go @@ -4,7 +4,6 @@ import ( "crypto/ecdsa" "testing" - "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/acl" v2acl "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/acl" "github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/stretchr/testify/require" @@ -79,7 +78,7 @@ func TestTarget_ToV2(t *testing.T) { // convert to v2 message targetV2 := target.ToV2() - require.Equal(t, acl.RoleUnknown, targetV2.GetRole()) + require.Equal(t, v2acl.RoleUnknown, targetV2.GetRole()) require.Nil(t, targetV2.GetKeys()) }) }