Login: remove unused function (#78442)

* Move test to the db so we test the queries and not just testing the mock

* Remove unused function and dependencies

* Remove unused functions from the database

* Add some integration tests
This commit is contained in:
Karl Persson
2023-11-21 11:44:13 +01:00
committed by GitHub
parent e2f2d8b3d6
commit d42201dbf4
11 changed files with 174 additions and 836 deletions
+1 -2
View File
@@ -13,7 +13,6 @@ import (
"golang.org/x/oauth2"
"golang.org/x/sync/singleflight"
"github.com/grafana/grafana/pkg/infra/usagestats"
"github.com/grafana/grafana/pkg/login/socialtest"
"github.com/grafana/grafana/pkg/services/login"
"github.com/grafana/grafana/pkg/services/login/authinfoservice"
@@ -230,7 +229,7 @@ func setupOAuthTokenService(t *testing.T) (*Service, *FakeAuthInfoStore, *social
}
authInfoStore := &FakeAuthInfoStore{}
authInfoService := authinfoservice.ProvideAuthInfoService(nil, authInfoStore, &usagestats.UsageStatsMock{})
authInfoService := authinfoservice.ProvideAuthInfoService(authInfoStore)
return &Service{
Cfg: setting.NewCfg(),
SocialService: socialService,