Describe key service behavior, and flag breaking changes.
What
- End-to-end tests verifying service responds appropriately to both valid and invalid requests:
- Malformed or missing parameters
- [Future] Unauthorized requests
- Unit tests to verify key logic or behavior:
- Signature formatting
- Parameter validation?
- Callback construction?
Considerations
- How much can we lean on end-to-end tests?
- Signature logic seems like the only piece that really benefits from unit testing.
Tests
End-to-end
Unit
Retry
HMAC
Describe key service behavior, and flag breaking changes.
What
Considerations
Tests
End-to-end
202with valid data + faithfully relays to callback400if request data is missing or malformed403if request cannot be verifiedUnit
Retry
500up to 3 times before dumping the last response500errorsHMAC