Folders: Move to integration tests (#108733)

This commit is contained in:
Stephanie Hingtgen
2025-07-29 09:57:44 +00:00
committed by GitHub
parent af72ef31d1
commit 39b9700048
5 changed files with 465 additions and 2367 deletions
-4
View File
@@ -678,10 +678,6 @@ func (s *Service) GetParentsLegacy(ctx context.Context, q folder.GetParentsQuery
return s.store.GetParents(ctx, q)
}
func (s *Service) getFolderByUID(ctx context.Context, orgID int64, uid string) (*folder.Folder, error) {
return s.dashboardFolderStore.GetFolderByUID(ctx, orgID, uid)
}
func (s *Service) Create(ctx context.Context, cmd *folder.CreateFolderCommand) (*folder.Folder, error) {
if s.features.IsEnabledGlobally(featuremgmt.FlagKubernetesClientDashboardsFolders) {
return s.createOnApiServer(ctx, cmd)
File diff suppressed because it is too large Load Diff
@@ -31,6 +31,7 @@ import (
var folderTitle string = "folder1"
var folderDsc string = "folder desc"
var usr = &user.SignedInUser{UserID: 1, OrgID: orgID, Permissions: map[int64]map[string][]string{orgID: {dashboards.ActionFoldersCreate: {dashboards.ScopeFoldersProvider.GetResourceScopeUID(folder.GeneralFolderUID)}}}}
func TestIntegrationCreate(t *testing.T) {
if testing.Short() {