Commit Graph

5 Commits

Author SHA1 Message Date
Alex Palaistras 4edf851665 Break out SMS/Message provider, add tests
This commit represents a first step in modularizing the Andrews & Arnold
SGX in particular, and setting up a pattern for future Go-based SGX
implementations more broadly, by breaking out the notion of a message
"provider", that is, a remote API integrated against in sending and
receiving messages.

Modularizing at the level of the provider here will allow unit tests to
be written against a mock provider in the future, but this commit also
integrates tests against the concrete A&A provider, using a mock HTTP
client.

Changes here have been kept intentionally minimal to reduce the diff;
future efforts will see us pull functionalities into their own packages
to better maintain separation of concerns.
2023-12-17 15:05:48 +00:00
Stephen Paul Weber ccd22183db
Remove debug logs now that it work 2023-11-06 15:50:22 -05:00
Stephen Paul Weber cf75fb106d
Remove redundent check 2023-11-06 13:43:39 -05:00
Stephen Paul Weber 08d5d6f9b0
Guix and CI 2023-11-06 11:09:50 -05:00
Stephen Paul Weber ff5b62b44d
Initial commit 2023-11-06 11:09:22 -05:00