feat(plugins): major improvement in plugins golang code

This commit is contained in:
Torkel Ödegaard
2016-01-09 23:34:20 +01:00
parent 35f40b7312
commit 1ffcea1952
20 changed files with 218 additions and 182 deletions

View File

@ -19,6 +19,10 @@ func TestPluginScans(t *testing.T) {
So(err, ShouldBeNil)
So(len(DataSources), ShouldBeGreaterThan, 1)
So(len(Panels), ShouldBeGreaterThan, 1)
Convey("Should set module automatically", func() {
So(DataSources["graphite"].Module, ShouldEqual, "app/plugins/datasource/graphite/module")
})
})
Convey("When reading app plugin definition", t, func() {