Chore: Remove bus from folder service (#46840)

* Remove bus from folder service

* Fix tests
This commit is contained in:
Selene
2022-03-23 19:40:22 +01:00
committed by GitHub
parent 7839fadf00
commit d57c94fb6a
5 changed files with 23 additions and 48 deletions

View File

@@ -228,7 +228,7 @@ func createFolderWithACL(t *testing.T, sqlStore *sqlstore.SQLStore, title string
ac := acmock.New()
s := dashboardservice.ProvideFolderService(
cfg, d, dashboardStore, nil,
features, permissionsServices, ac,
features, permissionsServices, ac, nil,
)
t.Logf("Creating folder with title and UID %q", title)
folder, err := s.CreateFolder(context.Background(), &user, user.OrgId, title, title)
@@ -327,7 +327,7 @@ func testScenario(t *testing.T, desc string, fn func(t *testing.T, sc scenarioCo
SQLStore: sqlStore,
folderService: dashboardservice.ProvideFolderService(
setting.NewCfg(), dashboardService, dashboardStore, nil,
featuremgmt.WithFeatures(), acmock.NewPermissionsServicesMock(), ac,
featuremgmt.WithFeatures(), acmock.NewPermissionsServicesMock(), ac, nil,
),
}