Chore: prepare for removing RBACenabled config option (#73845)

prepare for removing RBACenabled config option
This commit is contained in:
Ieva
2023-08-25 17:13:46 +02:00
committed by GitHub
parent 31e29de024
commit ca46a5c1af
6 changed files with 16 additions and 39 deletions
@@ -88,7 +88,6 @@ func TestAPIViewPublicDashboard(t *testing.T) {
Return(&PublicDashboard{Uid: "pubdashuid"}, test.DashboardResult, test.Err).Maybe()
cfg := setting.NewCfg()
cfg.RBACEnabled = false
testServer := setupTestServer(
t,
@@ -326,7 +325,6 @@ func TestIntegrationUnauthenticatedUserCanGetPubdashPanelQueryData(t *testing.T)
cfg := setting.NewCfg()
ac := acmock.New()
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)
require.NoError(t, err)
@@ -415,7 +413,6 @@ func TestAPIGetAnnotations(t *testing.T) {
for _, test := range testCases {
t.Run(test.Name, func(t *testing.T) {
cfg := setting.NewCfg()
cfg.RBACEnabled = false
service := publicdashboards.NewFakePublicDashboardService(t)
if test.ExpectedServiceCalled {