Auth: Move apikey service from userSignedIn to identity.Requester interface (#74323)

change from userSignedIn to identity.Requester interface
pull/74559/head
Eric Leijonmarck 2 years ago committed by GitHub
parent d14851c877
commit 61e96f8412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkg/services/apikey/apikeyimpl/store_test.go

@ -12,6 +12,7 @@ import (
"github.com/grafana/grafana/pkg/infra/db"
"github.com/grafana/grafana/pkg/services/accesscontrol"
"github.com/grafana/grafana/pkg/services/apikey"
"github.com/grafana/grafana/pkg/services/auth/identity"
"github.com/grafana/grafana/pkg/services/user"
"github.com/grafana/grafana/pkg/setting"
)
@ -20,7 +21,7 @@ type getStore func(db.DB, *setting.Cfg) store
type getApiKeysTestCase struct {
desc string
user *user.SignedInUser
user identity.Requester
expectedNumKeys int
expectedAllNumKeys int
}

Loading…
Cancel
Save