2021-09-01 09:38:56 -05:00
|
|
|
//go:build integration
|
2020-10-21 04:06:19 -05:00
|
|
|
// +build integration
|
|
|
|
|
|
|
|
package sqlstore
|
|
|
|
|
|
|
|
import (
|
2021-10-11 07:35:03 -05:00
|
|
|
"context"
|
2020-10-21 04:06:19 -05:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/grafana/grafana/pkg/models"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGetDBHealthQuery(t *testing.T) {
|
2022-02-04 07:33:35 -06:00
|
|
|
store := InitTestDB(t)
|
2020-10-21 04:06:19 -05:00
|
|
|
|
|
|
|
query := models.GetDBHealthQuery{}
|
2022-02-04 07:33:35 -06:00
|
|
|
err := store.GetDBHealthQuery(context.Background(), &query)
|
2020-10-21 04:06:19 -05:00
|
|
|
require.NoError(t, err)
|
|
|
|
}
|