mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
84a5910e56
* pass notification service down to the notifiers * add ns to all notifiers * remove bus from ngalert notifiers * use smaller interfaces for notificationservice * attempt to fix the tests * remove unused struct field * simplify notification service mock * trying to resolve issues in the tests * make linter happy * make linter even happier * linter, you are annoying
17 lines
459 B
Go
17 lines
459 B
Go
package server
|
|
|
|
import (
|
|
"github.com/grafana/grafana/pkg/services/notifications"
|
|
"github.com/grafana/grafana/pkg/services/sqlstore"
|
|
)
|
|
|
|
func ProvideTestEnv(server *Server, store *sqlstore.SQLStore, ns *notifications.NotificationServiceMock) (*TestEnv, error) {
|
|
return &TestEnv{server, store, ns}, nil
|
|
}
|
|
|
|
type TestEnv struct {
|
|
Server *Server
|
|
SQLStore *sqlstore.SQLStore
|
|
NotificationService *notifications.NotificationServiceMock
|
|
}
|