2020-08-24 17:23:14 +08:00
|
|
|
package sqlstore
|
|
|
|
|
|
|
|
|
|
import (
|
2021-09-28 23:54:45 +08:00
|
|
|
"context"
|
2020-08-24 17:23:14 +08:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/grafana/grafana/pkg/models"
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
|
)
|
|
|
|
|
|
2020-08-25 14:59:44 +08:00
|
|
|
func TestIntegration_GetAdminStats(t *testing.T) {
|
2022-06-10 23:46:21 +08:00
|
|
|
if testing.Short() {
|
|
|
|
|
t.Skip("skipping integration test")
|
|
|
|
|
}
|
2022-02-05 00:53:58 +08:00
|
|
|
sqlStore := InitTestDB(t)
|
2020-08-25 14:59:44 +08:00
|
|
|
|
|
|
|
|
query := models.GetAdminStatsQuery{}
|
2022-02-05 00:53:58 +08:00
|
|
|
err := sqlStore.GetAdminStats(context.Background(), &query)
|
2020-08-25 14:59:44 +08:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
}
|