mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Fix flaky test by removing the extsvcauth background service (#79044)
This commit is contained in:
parent
38bc41651a
commit
99580d60f5
@ -14,7 +14,6 @@ import (
|
|||||||
"github.com/grafana/grafana/pkg/services/auth"
|
"github.com/grafana/grafana/pkg/services/auth"
|
||||||
"github.com/grafana/grafana/pkg/services/cleanup"
|
"github.com/grafana/grafana/pkg/services/cleanup"
|
||||||
"github.com/grafana/grafana/pkg/services/dashboardsnapshots"
|
"github.com/grafana/grafana/pkg/services/dashboardsnapshots"
|
||||||
extsvcreg "github.com/grafana/grafana/pkg/services/extsvcauth/registry"
|
|
||||||
grafanaapiserver "github.com/grafana/grafana/pkg/services/grafana-apiserver"
|
grafanaapiserver "github.com/grafana/grafana/pkg/services/grafana-apiserver"
|
||||||
"github.com/grafana/grafana/pkg/services/grpcserver"
|
"github.com/grafana/grafana/pkg/services/grpcserver"
|
||||||
"github.com/grafana/grafana/pkg/services/guardian"
|
"github.com/grafana/grafana/pkg/services/guardian"
|
||||||
@ -58,7 +57,7 @@ func ProvideBackgroundServiceRegistry(
|
|||||||
bundleService *supportbundlesimpl.Service, publicDashboardsMetric *publicdashboardsmetric.Service,
|
bundleService *supportbundlesimpl.Service, publicDashboardsMetric *publicdashboardsmetric.Service,
|
||||||
keyRetriever *dynamic.KeyRetriever, dynamicAngularDetectorsProvider *angulardetectorsprovider.Dynamic,
|
keyRetriever *dynamic.KeyRetriever, dynamicAngularDetectorsProvider *angulardetectorsprovider.Dynamic,
|
||||||
grafanaAPIServer grafanaapiserver.Service,
|
grafanaAPIServer grafanaapiserver.Service,
|
||||||
anon *anonimpl.AnonDeviceService, reg *extsvcreg.Registry,
|
anon *anonimpl.AnonDeviceService,
|
||||||
// Need to make sure these are initialized, is there a better place to put them?
|
// Need to make sure these are initialized, is there a better place to put them?
|
||||||
_ dashboardsnapshots.Service, _ *alerting.AlertNotificationService,
|
_ dashboardsnapshots.Service, _ *alerting.AlertNotificationService,
|
||||||
_ serviceaccounts.Service, _ *guardian.Provider,
|
_ serviceaccounts.Service, _ *guardian.Provider,
|
||||||
@ -99,7 +98,6 @@ func ProvideBackgroundServiceRegistry(
|
|||||||
dynamicAngularDetectorsProvider,
|
dynamicAngularDetectorsProvider,
|
||||||
grafanaAPIServer,
|
grafanaAPIServer,
|
||||||
anon,
|
anon,
|
||||||
reg,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,8 +200,8 @@ func (r *Registry) retrieveExtSvcProviders(ctx context.Context) (map[string]exts
|
|||||||
return extsvcs, nil
|
return extsvcs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Registry) Run(ctx context.Context) error {
|
// func (r *Registry) Run(ctx context.Context) error {
|
||||||
// This is a one-time background job.
|
// // This is a one-time background job.
|
||||||
// Cleans up external services that have not been registered this time.
|
// // Cleans up external services that have not been registered this time.
|
||||||
return r.CleanUpOrphanedExternalServices(ctx)
|
// return r.CleanUpOrphanedExternalServices(ctx)
|
||||||
}
|
// }
|
||||||
|
Loading…
Reference in New Issue
Block a user