Alerting: Add integration tests for dual-stage email templating (#43484)

* Resolve merge conflicts

* Remove cruft from local exploration

* Move integration tests to intercept using new abstraction layer instead of channel

* Fix linter error after rebase
This commit is contained in:
Alexander Weaver
2022-03-01 10:49:49 -06:00
committed by GitHub
parent 4502e40ed8
commit 703d7deeda
2 changed files with 206 additions and 0 deletions
@@ -118,6 +118,10 @@ func (ns *NotificationService) Run(ctx context.Context) error {
}
}
func (ns *NotificationService) GetMailer() Mailer {
return ns.mailer
}
func (ns *NotificationService) SendWebhookSync(ctx context.Context, cmd *models.SendWebhookSync) error {
return ns.sendWebRequestSync(ctx, &Webhook{
Url: cmd.Url,