mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove integration tag (#50395)
This commit is contained in:
parent
aec020b67e
commit
a938ae1d9e
@ -1,6 +1,3 @@
|
|||||||
//go:build integration
|
|
||||||
// +build integration
|
|
||||||
|
|
||||||
package database
|
package database
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -15,7 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// GetPublicDashboard
|
// GetPublicDashboard
|
||||||
func TestGetPublicDashboard(t *testing.T) {
|
func TestIntegrationGetPublicDashboard(t *testing.T) {
|
||||||
var sqlStore *sqlstore.SQLStore
|
var sqlStore *sqlstore.SQLStore
|
||||||
var dashboardStore *DashboardStore
|
var dashboardStore *DashboardStore
|
||||||
var savedDashboard *models.Dashboard
|
var savedDashboard *models.Dashboard
|
||||||
@ -78,11 +75,10 @@ func TestGetPublicDashboard(t *testing.T) {
|
|||||||
_, _, err = dashboardStore.GetPublicDashboard("abc1234")
|
_, _, err = dashboardStore.GetPublicDashboard("abc1234")
|
||||||
require.Error(t, models.ErrDashboardNotFound, err)
|
require.Error(t, models.ErrDashboardNotFound, err)
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetPublicDashboardConfig
|
// GetPublicDashboardConfig
|
||||||
func TestGetPublicDashboardConfig(t *testing.T) {
|
func TestIntegrationGetPublicDashboardConfig(t *testing.T) {
|
||||||
var sqlStore *sqlstore.SQLStore
|
var sqlStore *sqlstore.SQLStore
|
||||||
var dashboardStore *DashboardStore
|
var dashboardStore *DashboardStore
|
||||||
var savedDashboard *models.Dashboard
|
var savedDashboard *models.Dashboard
|
||||||
@ -131,7 +127,7 @@ func TestGetPublicDashboardConfig(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SavePublicDashboardConfig
|
// SavePublicDashboardConfig
|
||||||
func TestSavePublicDashboardConfig(t *testing.T) {
|
func TestIntegrationSavePublicDashboardConfig(t *testing.T) {
|
||||||
var sqlStore *sqlstore.SQLStore
|
var sqlStore *sqlstore.SQLStore
|
||||||
var dashboardStore *DashboardStore
|
var dashboardStore *DashboardStore
|
||||||
var savedDashboard *models.Dashboard
|
var savedDashboard *models.Dashboard
|
||||||
@ -171,6 +167,7 @@ func TestSavePublicDashboardConfig(t *testing.T) {
|
|||||||
|
|
||||||
// verify we didn't update all dashboards
|
// verify we didn't update all dashboards
|
||||||
pdc2, err := dashboardStore.GetPublicDashboardConfig(savedDashboard2.OrgId, savedDashboard2.Uid)
|
pdc2, err := dashboardStore.GetPublicDashboardConfig(savedDashboard2.OrgId, savedDashboard2.Uid)
|
||||||
|
require.NoError(t, err)
|
||||||
assert.False(t, pdc2.IsPublic)
|
assert.False(t, pdc2.IsPublic)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user