mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Revert "Alerting: Remove vendored models in migration service (#74503)"
This reverts commit 6a8649d544
.
26 lines
528 B
Go
26 lines
528 B
Go
package ualert
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/log"
|
|
"github.com/grafana/grafana/pkg/services/sqlstore/migrator"
|
|
"github.com/prometheus/alertmanager/silence/silencepb"
|
|
)
|
|
|
|
// newTestMigration generates an empty migration to use in tests.
|
|
func newTestMigration(t *testing.T) *migration {
|
|
t.Helper()
|
|
|
|
return &migration{
|
|
mg: &migrator.Migrator{
|
|
|
|
Logger: log.New("test"),
|
|
},
|
|
seenUIDs: uidSet{
|
|
set: make(map[string]struct{}),
|
|
},
|
|
silences: make(map[int64][]*silencepb.MeshSilence),
|
|
}
|
|
}
|