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