2021-09-01 22:38:56 +08:00
|
|
|
//go:build integration
|
2020-08-24 17:23:14 +08:00
|
|
|
// +build integration
|
|
|
|
|
|
|
|
|
|
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) {
|
|
|
|
|
InitTestDB(t)
|
|
|
|
|
|
|
|
|
|
query := models.GetAdminStatsQuery{}
|
2021-09-28 23:54:45 +08:00
|
|
|
err := GetAdminStats(context.Background(), &query)
|
2020-08-25 14:59:44 +08:00
|
|
|
require.NoError(t, err)
|
|
|
|
|
}
|