Chore: Refactor short url api test (#35051)

Use a mock of the short URL service rather than real one which requires database access.

Ref #34696
This commit is contained in:
Marcus Efraimsson
2021-06-01 20:34:59 +02:00
committed by GitHub
parent 878474a808
commit d953e200f0
4 changed files with 54 additions and 12 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ type HTTPServer struct {
PluginRequestValidator models.PluginRequestValidator `inject:""`
PluginManager plugins.Manager `inject:""`
SearchService *search.SearchService `inject:""`
ShortURLService *shorturls.ShortURLService `inject:""`
ShortURLService shorturls.Service `inject:""`
Live *live.GrafanaLive `inject:""`
LivePushGateway *pushhttp.Gateway `inject:""`
ContextHandler *contexthandler.ContextHandler `inject:""`