PublicDashboards: New method created to get access through Request access page when its paused (#64451)

This commit is contained in:
juanicabanas
2023-03-09 14:17:54 -03:00
committed by GitHub
parent 8ef2afda87
commit 4d0e309d4e
7 changed files with 121 additions and 12 deletions
@@ -83,7 +83,7 @@ func TestAPIViewPublicDashboard(t *testing.T) {
for _, test := range testCases {
t.Run(test.Name, func(t *testing.T) {
service := publicdashboards.NewFakePublicDashboardService(t)
service.On("FindPublicDashboardAndDashboardByAccessToken", mock.Anything, mock.AnythingOfType("string")).
service.On("FindEnabledPublicDashboardAndDashboardByAccessToken", mock.Anything, mock.AnythingOfType("string")).
Return(&PublicDashboard{Uid: "pubdashuid"}, test.DashboardResult, test.Err).Maybe()
cfg := setting.NewCfg()