Ghost/ghost/core/test
Fabien "egg" O'Carroll 953f3856a8 Handled EmailBounceEvent with 605 error code
When Mailgun fails to deliver an email to an address because the
address has already bounced before, it gives us a permanent fail event
with a 605 error code rather than a 5xx one. Because we want to
"backfill" our suppressions data with previously bounced email
addresses, we want to handle this specific error code.

We may update this logic in the future based on new information from
Mailgun with respect to their 6xx error codes and the
meanings/underlying cause of theme.

This also moves the tests which check for whether or not emails are
suppressed into their own fail so that we do not pollute the event
storage tests, and adds more tests cases.

We also fix a leaky sinon stub which we were not resetting in the email
event storage tests
2023-01-05 17:11:37 +07:00
..
e2e-api Fixed email_recipients fixtures for tests 2023-01-05 17:11:06 +07:00
e2e-browser 🐛 Removed free trial message shown on portal for invite only sites 2023-01-04 17:11:55 +05:30
e2e-frontend 🔒 Disabled editable relations by default 2022-11-28 18:40:26 +07:00
e2e-server Added email service package (#15849) 2022-11-21 10:29:53 +01:00
e2e-webhooks 🐛 Fixed tiers order by monthly_price (#16013) 2023-01-03 12:59:18 +04:00
integration Handled EmailBounceEvent with 605 error code 2023-01-05 17:11:37 +07:00
regression Added DomainEvents.allSettled utility method (#16075) 2023-01-04 14:30:35 +01:00
unit Added DomainEvents.allSettled utility method (#16075) 2023-01-04 14:30:35 +01:00
utils Fixed email_recipients fixtures for tests 2023-01-05 17:11:06 +07:00
.eslintignore Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
.eslintrc.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00