department-of-veterans-affairs / notification-api

Notification API
MIT License
16 stars 9 forks source link

#2011 - Notification status and status_reason consistency #2030

Closed kalbfled closed 1 month ago

kalbfled commented 1 month ago

Description

These changes ensure that a notification's "status reason" is always the empty string when the status is "delivered."

The underlying ticket cited a problem without an explicit way to reproduce it, so I went looking for problems. These changes cover all code paths as far as I can tell without a specific problem to fix.

issue #2011

How Has This Been Tested?

This is not easy to test because I don't know how to force providers to return a particular status. I'm relying heavily on unit tests.

Checklist