From 55e29d4405f4895045aafec5aaf169754fc09a91 Mon Sep 17 00:00:00 2001 From: maicon Date: Mon, 30 Jun 2025 10:32:12 -0300 Subject: [PATCH] Unistore: Reenable integration tests (#107340) * Unistore: Reenable integration tests Signed-off-by: Maicon Costa --------- Signed-off-by: Maicon Costa --- pkg/tests/apis/folder/folders_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkg/tests/apis/folder/folders_test.go b/pkg/tests/apis/folder/folders_test.go index c8975a601cb..81d2d00a182 100644 --- a/pkg/tests/apis/folder/folders_test.go +++ b/pkg/tests/apis/folder/folders_test.go @@ -16,7 +16,6 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" folders "github.com/grafana/grafana/apps/folder/pkg/apis/folder/v1beta1" - "github.com/grafana/grafana/pkg/api" "github.com/grafana/grafana/pkg/api/dtos" grafanarest "github.com/grafana/grafana/pkg/apiserver/rest" "github.com/grafana/grafana/pkg/services/accesscontrol/resourcepermissions" @@ -583,7 +582,6 @@ func TestIntegrationFolderCreatePermissions(t *testing.T) { if testing.Short() { t.Skip("skipping integration test") } - t.Skip("not working yet") folderWithoutParentInput := "{ \"uid\": \"uid\", \"title\": \"Folder\"}" folderWithParentInput := "{ \"uid\": \"uid\", \"title\": \"Folder\", \"parentUid\": \"parentuid\"}" @@ -708,7 +706,6 @@ func TestIntegrationFolderGetPermissions(t *testing.T) { if testing.Short() { t.Skip("skipping integration test") } - t.Skip("not yet working") type testCase struct { description string @@ -735,10 +732,10 @@ func TestIntegrationFolderGetPermissions(t *testing.T) { checkAccessControl: true, }, { - description: "get folder by UID should return parent folders redacted if nested folder are enabled and user does not have read access to parent folders", + description: "get folder by UID should not return parent folders if nested folder are enabled and user does not have read access to parent folders", expectedCode: http.StatusOK, - expectedParentUIDs: []string{api.REDACTED}, - expectedParentTitles: []string{api.REDACTED}, + expectedParentUIDs: []string{}, + expectedParentTitles: []string{}, permissions: []resourcepermissions.SetResourcePermissionCommand{ { Actions: []string{dashboards.ActionFoldersRead},