backend/datasources: move datasources models into the datasources service package (#51267)

* backend/datasources: move datasources models into the datasources service pkg
This commit is contained in:
Kristin Laemmert
2022-06-27 12:23:15 -04:00
committed by GitHub
parent 78c012df65
commit 945f015770
77 changed files with 728 additions and 660 deletions
+6 -5
View File
@@ -4,8 +4,9 @@ import (
"encoding/json"
"testing"
"github.com/grafana/grafana/pkg/models"
"github.com/stretchr/testify/require"
"github.com/grafana/grafana/pkg/services/datasources"
)
func TestServicebuildPipeLine(t *testing.T) {
@@ -30,7 +31,7 @@ func TestServicebuildPipeLine(t *testing.T) {
},
{
RefID: "B",
DataSource: &models.DataSource{
DataSource: &datasources.DataSource{
Uid: "Fake",
},
},
@@ -140,7 +141,7 @@ func TestServicebuildPipeLine(t *testing.T) {
},
{
RefID: "C",
DataSource: &models.DataSource{
DataSource: &datasources.DataSource{
Uid: "Fake",
},
},
@@ -194,7 +195,7 @@ func TestServicebuildPipeLine(t *testing.T) {
},
{
RefID: "C",
DataSource: &models.DataSource{
DataSource: &datasources.DataSource{
Uid: "Fake",
},
},
@@ -217,7 +218,7 @@ func TestServicebuildPipeLine(t *testing.T) {
},
{
RefID: "B",
DataSource: &models.DataSource{
DataSource: &datasources.DataSource{
Uid: "Fake",
},
},