working commit

This commit is contained in:
2026-02-20 14:08:06 +02:00
parent 7dc6f9cb08
commit e2b3eaf6b8
3 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -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)