mirror of https://github.com/grafana/grafana
nr of folders nr of folder permissions nr of dashboard permissions nr of snapshots nr of teams nr of provisioned dashboardspull/12071/head
parent
a6a12d36d7
commit
2ea5b6fe33
@ -0,0 +1,27 @@ |
||||
package sqlstore |
||||
|
||||
import ( |
||||
"testing" |
||||
|
||||
m "github.com/grafana/grafana/pkg/models" |
||||
. "github.com/smartystreets/goconvey/convey" |
||||
) |
||||
|
||||
func TestStatsDataAccess(t *testing.T) { |
||||
|
||||
Convey("Testing Stats Data Access", t, func() { |
||||
InitTestDB(t) |
||||
|
||||
Convey("Get system stats should not results in error", func() { |
||||
query := m.GetSystemStatsQuery{} |
||||
err := GetSystemStats(&query) |
||||
So(err, ShouldBeNil) |
||||
}) |
||||
|
||||
Convey("Get system user count stats should not results in error", func() { |
||||
query := m.GetSystemUserCountStatsQuery{} |
||||
err := GetSystemUserCountStats(&query) |
||||
So(err, ShouldBeNil) |
||||
}) |
||||
}) |
||||
} |
||||
Loading…
Reference in new issue