|
@@ -35,7 +35,7 @@ func TestDashboardImport(t *testing.T) {
|
|
|
So(cmd.Result, ShouldNotBeNil)
|
|
So(cmd.Result, ShouldNotBeNil)
|
|
|
|
|
|
|
|
resultStr, _ := mock.SavedDashboards[0].Dashboard.Data.EncodePretty()
|
|
resultStr, _ := mock.SavedDashboards[0].Dashboard.Data.EncodePretty()
|
|
|
- expectedBytes, _ := ioutil.ReadFile("../../tests/test-app/dashboards/connections_result.json")
|
|
|
|
|
|
|
+ expectedBytes, _ := ioutil.ReadFile("testdata/test-app/dashboards/connections_result.json")
|
|
|
expectedJson, _ := simplejson.NewJson(expectedBytes)
|
|
expectedJson, _ := simplejson.NewJson(expectedBytes)
|
|
|
expectedStr, _ := expectedJson.EncodePretty()
|
|
expectedStr, _ := expectedJson.EncodePretty()
|
|
|
|
|
|
|
@@ -89,7 +89,7 @@ func pluginScenario(desc string, t *testing.T, fn func()) {
|
|
|
Convey("Given a plugin", t, func() {
|
|
Convey("Given a plugin", t, func() {
|
|
|
setting.Raw = ini.Empty()
|
|
setting.Raw = ini.Empty()
|
|
|
sec, _ := setting.Raw.NewSection("plugin.test-app")
|
|
sec, _ := setting.Raw.NewSection("plugin.test-app")
|
|
|
- sec.NewKey("path", "../../tests/test-app")
|
|
|
|
|
|
|
+ sec.NewKey("path", "testdata/test-app")
|
|
|
|
|
|
|
|
pm := &PluginManager{}
|
|
pm := &PluginManager{}
|
|
|
err := pm.Init()
|
|
err := pm.Init()
|