Alerting: Add abstraction layer and testing hooks in front of SMTP dialer (#43875)

* Add abstraction layer above SMTP communication

* Fix issues with attachments and sync command

* Tests for bad SMTP behavior

* Separate tests between async and sync entry points. Test difference between them

* Return interface so Wire can properly map types

* Address feedback from George
This commit is contained in:
Alexander Weaver
2022-01-13 15:19:15 -06:00
committed by GitHub
parent 8114f6b065
commit c68eefd398
8 changed files with 551 additions and 183 deletions
+1
View File
@@ -150,6 +150,7 @@ var wireBasicSet = wire.NewSet(
libraryelements.ProvideService,
wire.Bind(new(libraryelements.Service), new(*libraryelements.LibraryElementService)),
notifications.ProvideService,
notifications.ProvideSmtpService,
tracing.ProvideService,
metrics.ProvideService,
testdatasource.ProvideService,