PublicDashboards: validate only one public dashboard per dashboard (#66228)

This commit is contained in:
Ezequiel Victorero
2023-04-12 10:57:42 -03:00
committed by GitHub
parent 18cb2ac9dd
commit 3224b4c8f0
5 changed files with 45 additions and 45 deletions
@@ -324,7 +324,7 @@ func TestIntegrationUnauthenticatedUserCanGetPubdashPanelQueryData(t *testing.T)
store := publicdashboardsStore.ProvideStore(db)
cfg := setting.NewCfg()
ac := acmock.New()
ws := &publicdashboards.FakePublicDashboardServiceWrapper{}
ws := publicdashboardsService.ProvideServiceWrapper(store)
cfg.RBACEnabled = false
service := publicdashboardsService.ProvideService(cfg, store, qds, annotationsService, ac, ws)
pubdash, err := service.Create(context.Background(), &user.SignedInUser{}, savePubDashboardCmd)