Add remainder of the mailer mocks to the mailer flow

This commit is contained in:
Eli Ribble 2026-03-03 17:52:46 +00:00
parent c9eee95cbb
commit 0ff493cd53
No known key found for this signature in database
9 changed files with 1495 additions and 8 deletions

View file

@ -59,14 +59,32 @@ func newContentURLConfiguration() contentURLConfiguration {
}
type contentURLRMO struct {
Evidence urlWithParams
UpdateLocation urlWithParams
Mailer contentURLRMOMailer
}
func newContentURLRMO() contentURLRMO {
return contentURLRMO{
Evidence: makeURLWithParams(config.MakeURLReport, "/mailer/%s/evidence"),
UpdateLocation: makeURLWithParams(config.MakeURLReport, "/mailer/%s/update"),
Mailer: newContentURLRMOMailer(),
}
}
type contentURLRMOMailer struct {
Confirm urlWithParams
Contribute urlWithParams
Evidence urlWithParams
Root urlWithParams
Schedule urlWithParams
Update urlWithParams
}
func newContentURLRMOMailer() contentURLRMOMailer {
return contentURLRMOMailer{
Confirm: makeURLWithParams(config.MakeURLReport, "/mailer/%s/confirm"),
Contribute: makeURLWithParams(config.MakeURLReport, "/mailer/%s/contribute"),
Evidence: makeURLWithParams(config.MakeURLReport, "/mailer/%s/evidence"),
Root: makeURLWithParams(config.MakeURLReport, "/mailer/%s"),
Schedule: makeURLWithParams(config.MakeURLReport, "/mailer/%s/schedule"),
Update: makeURLWithParams(config.MakeURLReport, "/mailer/%s/update"),
}
}