Unify lint configuration with frostfs-node #47

Merged
fyrchik merged 1 commit from fyrchik/frostfs-sdk-go:fix-golangci-lint into master 2023-07-26 21:08:02 +00:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit f8c34b45f3 - Show all commits

View file

@ -4,7 +4,6 @@ import (
"strconv" "strconv"
"testing" "testing"
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/acl"
v2acl "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/acl" v2acl "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/acl"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
@ -83,8 +82,8 @@ func TestFilter_ToV2(t *testing.T) {
require.Empty(t, filterV2.GetKey()) require.Empty(t, filterV2.GetKey())
require.Empty(t, filterV2.GetValue()) require.Empty(t, filterV2.GetValue())
require.Equal(t, acl.HeaderTypeUnknown, filterV2.GetHeaderType()) require.Equal(t, v2acl.HeaderTypeUnknown, filterV2.GetHeaderType())
require.Equal(t, acl.MatchTypeUnknown, filterV2.GetMatchType()) require.Equal(t, v2acl.MatchTypeUnknown, filterV2.GetMatchType())
}) })
t.Run("reserved types", func(t *testing.T) { t.Run("reserved types", func(t *testing.T) {

View file

@ -4,7 +4,6 @@ import (
"crypto/ecdsa" "crypto/ecdsa"
"testing" "testing"
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/acl"
v2acl "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/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
@ -79,7 +78,7 @@ func TestTarget_ToV2(t *testing.T) {
// convert to v2 message // convert to v2 message
targetV2 := target.ToV2() targetV2 := target.ToV2()
require.Equal(t, acl.RoleUnknown, targetV2.GetRole()) require.Equal(t, v2acl.RoleUnknown, targetV2.GetRole())
require.Nil(t, targetV2.GetKeys()) require.Nil(t, targetV2.GetKeys())
}) })
} }