working commit
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
"mstore/app/server"
|
||||
"mstore/pkg/client"
|
||||
"mstore/pkg/descr"
|
||||
"mstore/pkg/terms"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -99,7 +99,7 @@ func TestAccountLife(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
ctx, _ = context.WithTimeout(ctx, 1*time.Second)
|
||||
|
||||
grantID, err = cli.CreateGrant(ctx, srvaddr, accountID, descr.RightReadAccounts, ".*")
|
||||
grantID, err = cli.CreateGrantByAccountID(ctx, srvaddr, accountID, terms.RightReadAccounts, ".*")
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, len(grantID), 36)
|
||||
}
|
||||
@@ -120,7 +120,7 @@ func TestAccountLife(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
ctx, _ = context.WithTimeout(ctx, 1*time.Second)
|
||||
|
||||
grantID, err = cli.CreateGrant(ctx, srvaddr, accountID, descr.RightWriteAccounts, ".*")
|
||||
grantID, err = cli.CreateGrantByAccountID(ctx, srvaddr, accountID, terms.RightWriteAccounts, ".*")
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, len(grantID), 36)
|
||||
fmt.Printf("grantID: %s\n", grantID)
|
||||
|
||||
Reference in New Issue
Block a user