mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
e74ce72410
commit
8dbba467f1
pkg/plugins
@ -35,7 +35,7 @@ func TestDashboardImport(t *testing.T) {
|
||||
So(cmd.Result, ShouldNotBeNil)
|
||||
|
||||
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)
|
||||
expectedStr, _ := expectedJson.EncodePretty()
|
||||
|
||||
@ -89,7 +89,7 @@ func pluginScenario(desc string, t *testing.T, fn func()) {
|
||||
Convey("Given a plugin", t, func() {
|
||||
setting.Raw = ini.Empty()
|
||||
sec, _ := setting.Raw.NewSection("plugin.test-app")
|
||||
sec.NewKey("path", "../../tests/test-app")
|
||||
sec.NewKey("path", "testdata/test-app")
|
||||
|
||||
pm := &PluginManager{}
|
||||
err := pm.Init()
|
||||
|
@ -16,7 +16,7 @@ func TestPluginDashboards(t *testing.T) {
|
||||
Convey("When asking plugin dashboard info", t, func() {
|
||||
setting.Raw = ini.Empty()
|
||||
sec, _ := setting.Raw.NewSection("plugin.test-app")
|
||||
sec.NewKey("path", "../../tests/test-app")
|
||||
sec.NewKey("path", "testdata/test-app")
|
||||
|
||||
pm := &PluginManager{}
|
||||
err := pm.Init()
|
||||
|
@ -30,7 +30,7 @@ func TestPluginScans(t *testing.T) {
|
||||
Convey("When reading app plugin definition", t, func() {
|
||||
setting.Raw = ini.Empty()
|
||||
sec, _ := setting.Raw.NewSection("plugin.nginx-app")
|
||||
sec.NewKey("path", "../../tests/test-app")
|
||||
sec.NewKey("path", "testdata/test-app")
|
||||
|
||||
pm := &PluginManager{}
|
||||
err := pm.Init()
|
||||
|
Loading…
Reference in New Issue
Block a user