test(e2e): run the whole path through a real Postfix in Docker
- Add a Postfix test image: relay domain handed to parsimony over LMTP, members in maildirs, unknown users rejected with 5.1.1 - Check list headers, VERP return path and per-recipient unsubscribe links on real delivered mail - Check a real 5.1.1 disabling a member after three hard bounces, and a real LMTP 550 for non-members - Check join and leave by email, moderation, the public archive and one-click unsubscribe - Add make e2e behind the e2e build tag
This commit is contained in:
parent
ccb2940d6e
commit
9992a50ab9
1 changed files with 592 additions and 1 deletions
|
|
@ -83,11 +83,20 @@ It is served on the API listener together with `/api`, so it needs no CORS, and
|
|||
make admin # npm ci && npm run build
|
||||
make build # go build, embeds the UI
|
||||
make test # go test + vitest
|
||||
make e2e # end-to-end with a real Postfix in Docker (about 2 minutes, mostly the image build)
|
||||
```
|
||||
|
||||
Without `make admin` the binary still builds and the UI answers 503 with a hint.
|
||||
For frontend work run the daemon, then `cd admin && npm run dev` (Vite proxies `/api` to `127.0.0.1:8080`).
|
||||
|
||||
## End-to-end test
|
||||
|
||||
`make e2e` starts a real Postfix and parsimony in Docker and walks the whole path: Postfix hands list mail to
|
||||
parsimony over LMTP, parsimony queues it and relays the copies back through Postfix, which delivers them to
|
||||
maildirs. It checks the list headers and VERP return path, a real `550 5.1.1` from Postfix disabling a member after
|
||||
three hard bounces, a real LMTP `550` for a non-member, join and leave by email, moderation, the public archive
|
||||
and one-click unsubscribe. The files are in `e2e/` and behind the `e2e` build tag, so `go test ./...` stays fast.
|
||||
|
||||
## Postfix
|
||||
|
||||
Deliver the list domains to parsimony over LMTP and keep the `+` extensions intact, for example:
|
||||
|
|
|
|||
Loading…
Reference in a new issue