forked from TrueCloudLab/frostfs-node
[#2012] Add commands neofs-cli acl basic/extended print
to show ACL table in human readable format
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
59db66cdb6
commit
8a77b4638a
12 changed files with 432 additions and 167 deletions
|
@ -1,9 +1,9 @@
|
|||
package extended
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/cmd/neofs-cli/modules/util"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/eacl"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
@ -63,8 +63,7 @@ func TestParseTable(t *testing.T) {
|
|||
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
ss := strings.Split(test.rule, " ")
|
||||
err := parseTable(eaclTable, ss)
|
||||
err := util.ParseEACLRule(eaclTable, test.rule)
|
||||
ok := len(test.jsonRecord) > 0
|
||||
require.Equal(t, ok, err == nil, err)
|
||||
if ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue