Unify lint configuration with frostfs-node #47
2 changed files with 3 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue