add usage stats for datasource access mode

This commit is contained in:
Marcus Efraimsson
2018-05-25 16:06:35 +02:00
parent 2ea5b6fe33
commit fbc44025dc
5 changed files with 115 additions and 0 deletions
+12
View File
@@ -23,5 +23,17 @@ func TestStatsDataAccess(t *testing.T) {
err := GetSystemUserCountStats(&query)
So(err, ShouldBeNil)
})
Convey("Get datasource stats should not results in error", func() {
query := m.GetDataSourceStatsQuery{}
err := GetDataSourceStats(&query)
So(err, ShouldBeNil)
})
Convey("Get datasource access stats should not results in error", func() {
query := m.GetDataSourceAccessStatsQuery{}
err := GetDataSourceAccessStats(&query)
So(err, ShouldBeNil)
})
})
}