From e2b3eaf6b81d773e375579625892a6ea0134a646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D0=B5=D0=B3=20=D0=91=D0=BE=D1=80=D0=BE=D0=B4?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Fri, 20 Feb 2026 14:08:06 +0200 Subject: [PATCH] working commit --- test/account_test.go | 6 +++--- test/file_test.go | 3 ++- test/image_test.go | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/test/account_test.go b/test/account_test.go index 9deb8bc..9f486f1 100644 --- a/test/account_test.go +++ b/test/account_test.go @@ -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) diff --git a/test/file_test.go b/test/file_test.go index a441253..81f9294 100644 --- a/test/file_test.go +++ b/test/file_test.go @@ -21,6 +21,7 @@ import ( "mstore/app/server" "mstore/pkg/client" + "mstore/pkg/terms" "github.com/stretchr/testify/require" ) @@ -132,7 +133,7 @@ func TestFileLife(t *testing.T) { ctx := context.Background() ctx, _ = context.WithTimeout(ctx, 1*time.Second) - files, err := cli.ListFiles(ctx, srvaddr+"/") + files, err := cli.ListFiles(ctx, srvaddr+"/", terms.AsFinePath) require.NoError(t, err) require.NotZero(t, len(files)) } diff --git a/test/image_test.go b/test/image_test.go index 0d89587..a628b15 100644 --- a/test/image_test.go +++ b/test/image_test.go @@ -81,7 +81,7 @@ func TestImageLife(t *testing.T) { fmt.Printf("=== PushImage ===\n") cli := client.NewClient() ctx, _ := context.WithTimeout(context.Background(), 1*time.Second) - err := cli.PushImage(ctx, "test-oci.img", srvaddr+"/foo/test:123") + err := cli.PushImage(ctx, "test-oci.tar", srvaddr+"/foo/test:123") require.NoError(t, err) } {