Commit Graph
15 Commits
Author SHA1 Message Date
Wez Furlong b37c75e5e4 integration tests: explain this panic away better
Seemed to be an intermittent burp, but would benefit
from a better explanation anyway.
2023-06-12 14:48:11 -07:00
Wez Furlong f6ded18a96 add integration tests for smtp auth
refs: https://github.com/KumoCorp/kumomta/issues/10
2023-05-15 17:38:17 -07:00
Wez Furlong 713d46e6a8 tests: add end-to-end webhook test
This exercises the log -> webhook delivery path

refs: https://github.com/KumoCorp/kumomta/issues/36
refs: https://github.com/KumoCorp/kumomta/issues/18
2023-05-08 10:14:34 -07:00
Wez Furlong 69a9eb7ed6 explicitly run integration tests as the current user
This helps when we're running as root in a container on CI
2023-03-08 21:05:48 -07:00
Wez Furlong c7860fa93f add temp and perm fail integration tests 2023-03-08 16:53:03 -07:00
Wez Furlong b458bbced1 refactor integration testing to make it a bit easier to use
Helpers for generating messages, summarizing deliveries,
reducing boilerplate in the tests themselves.

Add SMTP line length test.
2023-03-08 10:32:01 -07:00
Wez Furlong 092aacebb5 fix scheduler deadlock when core count is low
The GH actions CI hangs were due to a deadlock in rt_spawn.
The GH runners have only two cores available which meant
that it would only take one call to send_blocking or recv_blocking
to tie up the localset threads and deadlock.

This commit adjusts that logic to make rt_spawn async and to
provide a non-blocking fire and forget variant for the couple
of situations that need it.

Also adds a bit of tracing!
2023-03-08 07:38:35 -07:00
Wez Furlong e65aa45740 turn up tracing to try to get more insight into hang on GH actions 2023-03-07 22:46:11 -07:00
Wez Furlong 1488c2dfd7 add timeout when stopping daemon in integration tests 2023-03-07 22:26:14 -07:00
Wez Furlong 6e15132be0 more tweaks to integration tests
trying to figure out why they hang on GH actions
2023-03-07 22:07:28 -07:00
Wez Furlong 25c229fae3 rustfmt 2023-03-07 20:22:04 -07:00
Wez Furlong 1d485d9fba dump delivery logs in integration test 2023-03-07 20:20:13 -07:00
Wez Furlong f4370faeac ci: make it easier to debug the new integration test 2023-03-07 19:37:57 -07:00
Wez Furlong 257dc4a25a flesh out integration testing some more
This has our first end-to-end integration test that validates
smtp -> source mta -> sink mta -> maildir
and confirms that the message has the right bits inside it.

The end to end test will get refactored into more easily usable
pieces in follow-up commit(s).
2023-03-07 18:42:14 -07:00
Wez Furlong 51d1408aa6 scaffolding for integration tests 2023-03-07 14:54:19 -07:00