Chore: Add some tests for the Create method (#81364)

* Add test for create method
    Co-authored-by: Tania B <10127682+undef1nd@users.noreply.github.com>
* Change structure of entity package to break import cycle
* Update wire file

---------

Co-authored-by: Tania B <10127682+undef1nd@users.noreply.github.com>
This commit is contained in:
Arati R
2024-01-30 14:15:12 +01:00
committed by GitHub
co-authored by Tania B
parent 41cd0ab12a
commit 77775d548a
9 changed files with 304 additions and 167 deletions
+3 -2
View File
@@ -138,6 +138,7 @@ import (
"github.com/grafana/grafana/pkg/services/stats/statsimpl"
"github.com/grafana/grafana/pkg/services/store"
entityDB "github.com/grafana/grafana/pkg/services/store/entity/db"
"github.com/grafana/grafana/pkg/services/store/entity/db/dbimpl"
"github.com/grafana/grafana/pkg/services/store/entity/sqlstash"
"github.com/grafana/grafana/pkg/services/store/resolver"
"github.com/grafana/grafana/pkg/services/store/sanitizer"
@@ -344,8 +345,8 @@ var wireBasicSet = wire.NewSet(
grpcserver.ProvideHealthService,
grpcserver.ProvideReflectionService,
interceptors.ProvideAuthenticator,
entityDB.ProvideEntityDB,
wire.Bind(new(sqlstash.EntityDB), new(*entityDB.EntityDB)),
dbimpl.ProvideEntityDB,
wire.Bind(new(entityDB.EntityDBInterface), new(*dbimpl.EntityDB)),
sqlstash.ProvideSQLEntityServer,
resolver.ProvideEntityReferenceResolver,
teamimpl.ProvideService,