Logo
Explore Help
Sign In
IntenseWebs/grafana
3
0
Fork 0
You've already forked grafana
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
1d7f155c927ea16d6fa12217c4060076464b971e
grafana/pkg/services/sqlstore/stats_integration_test.go

19 lines
307 B
Go
Raw Normal View History

Stats: Stop counting the same user multiple times (#26777) * Stats: Cache based stats implementation * Stats: Correct logic and add larger scale test * Stats: linter * Stats: SQL implementation * Stats: cleanup SQL * Stats: Tab -> Spaces * Update pkg/services/sqlstore/stats.go Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com> * Stats: Quote 'user' table with dialect.Quote * Stats: Ensure test is run as integration test * Stats: Use boolean value ...because if (v) { true } else { false } is unnecessary at best. Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
2020-08-24 11:23:14 +02:00
// +build integration
package sqlstore
import (
"testing"
"github.com/grafana/grafana/pkg/models"
"github.com/stretchr/testify/require"
)
Stats: Correct the number of arguments for SQL call (#27182) * Stats: Correct the number of arguments for SQL call * Stats: Run admin stats call as integration test
2020-08-25 08:59:44 +02:00
func TestIntegration_GetAdminStats(t *testing.T) {
InitTestDB(t)
query := models.GetAdminStatsQuery{}
err := GetAdminStats(&query)
require.NoError(t, err)
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 116ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API