Commit graph

40 commits

Author SHA1 Message Date
Luca Palmieri
fbff254455 Fix 'without db' confusion 2024-09-01 11:08:07 +02:00
Luca Palmieri
9130cc3043 Remove once_cell 2024-08-29 17:18:25 +02:00
Luca Palmieri
8c16cf46e9 Update to latest version of actix-web, tracing-bunyan-formatter and tracing-subscriber. Use tokio macros instead of actix-web's macros. 2021-12-26 16:53:58 +01:00
Luca Palmieri
236564f954 Update to latest version of actix-web, tracing-bunyan-formatter and tracing-subscriber. Use tokio macros instead of actix-web's macros. 2021-12-26 16:53:20 +01:00
LukeMathWalker
3bd80edfba Connect lazily 2021-09-29 09:22:50 +01:00
Luca Palmieri
524bd354a6 Fix clippy lints. 2021-09-11 21:59:18 +02:00
LukeMathWalker
32c03a55c5 Refactor tests. 2021-07-25 17:37:00 +01:00
LukeMathWalker
83826d0166 Add handler. 2021-07-25 16:40:01 +01:00
LukeMathWalker
16ba42dccf Add handler. 2021-07-22 08:31:57 +01:00
LukeMathWalker
2e644faf9d Name helper mock. 2021-07-21 22:21:23 +01:00
LukeMathWalker
725280372d Set expectation on helper mock. 2021-07-21 21:59:32 +01:00
LukeMathWalker
9752cfc71e Use scoped mock. 2021-07-21 21:41:13 +01:00
LukeMathWalker
5299ef1f1d First integration tests for newsletter delivery. 2021-07-17 19:43:47 +01:00
LukeMathWalker
2b3dae3a6a Remove unnecessary log statements. 2021-05-12 22:12:41 +01:00
LukeMathWalker
faaffbbd98 Add error test. 2021-05-02 17:02:18 +01:00
LukeMathWalker
c14296a34d Return 500 if email delivery fails. 2021-05-01 16:51:55 +01:00
LukeMathWalker
d05c9c9491 Use once_cell instead of lazy_static for tracing. Use custom sinks instead of filters to disable logging. 2021-05-01 15:54:39 +01:00
LukeMathWalker
b7ed1b4c28 cargo fmt. 2021-04-02 11:51:39 +01:00
LukeMathWalker
9a3420073c Add new test. 2021-03-11 21:40:39 +00:00
LukeMathWalker
e820e37275 Refactor. 2021-03-11 21:14:29 +00:00
LukeMathWalker
b3ad683b9a Roudntrip test. 2021-03-11 09:24:57 +00:00
LukeMathWalker
967b16b19b Get a 404. 2021-03-09 22:40:14 +00:00
LukeMathWalker
01f1d8758e Red test. 2021-03-09 21:51:11 +00:00
LukeMathWalker
6e049bab9e Refactor. 2021-03-09 21:12:58 +00:00
LukeMathWalker
28fc5612ae Split test cases. 2021-03-08 23:02:45 +00:00
LukeMathWalker
bdddc29ac1 Confirmation link (static). 2021-03-08 22:40:58 +00:00
LukeMathWalker
2ac9ccbe97 Red test (confirmation link). 2021-03-08 22:10:23 +00:00
LukeMathWalker
f4b066b487 Red test. 2021-03-08 21:10:59 +00:00
LukeMathWalker
3359c5f921 Fix failing test. 2021-02-15 21:26:43 +00:00
LukeMathWalker
04c53d49da Extract helper method. 2021-02-14 17:07:31 +00:00
LukeMathWalker
e562b7df6f Add address. 2021-02-14 16:41:45 +00:00
LukeMathWalker
55da2e2e2e Share startup logic. 2021-02-14 16:27:04 +00:00
LukeMathWalker
beeeacdafb Split into multiple files. 2021-02-14 15:26:43 +00:00
LukeMathWalker
0344317f85 Split tests across files. 2021-02-14 12:24:50 +00:00
LukeMathWalker
e8ff7914c9 Restructure test suite - first step. 2021-02-14 12:12:07 +00:00
LukeMathWalker
3145991669 Happy case test. 2021-01-16 23:01:08 +00:00
LukeMathWalker
eaa8390e85 Add configuration for email client. 2021-01-16 15:11:17 +00:00
Luca Palmieri
6db241eef6 Fix integration test. 2020-12-11 21:35:16 +00:00
Luca Palmieri
e5a32a51a4 First integration test. 2020-12-08 11:42:05 +00:00
Luca Palmieri
bfbbf96c41 Chapter 05 (snapshot) 2020-12-05 17:07:31 +00:00