e2e: the queues as tables - a deferred message on each, the empty one
- queue_readable_by_the_panel: the empty queue says "Nothing is waiting" (it
read postqueue -p's "Mail queue is empty").
- expired_message_is_closed: while defer_transports holds the message,
Outbound › Queue lists it with Postfix's reason ("deferred transport",
qmgr_message.c) and a Details link to its row.
- inbound_relay_delivers_and_refuses (testInboundUpstreamDown): the message
for an upstream that refuses is on Inbound › Queue with "connect to
10.77.0.11[10.77.0.11]:2526: Connection refused", and not on Outbound ›
Queue.
make e2e on the test server for 6db3704 plus this: 65 passed, 0 failed;
go vet + go test there: 26 packages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -93,6 +93,22 @@ print("" if r is None else "|".join(r))`, token)
|
||||
t.Fatalf("the Inbound log does not show the deferral:\n%.4000s", body)
|
||||
}
|
||||
|
||||
// The message waits on Inbound › Queue with the upstream's reason, and not
|
||||
// on Outbound › Queue: one Postfix queue, split by the recipient's domain.
|
||||
_, body, err = sc.panel.get("/inbound/queue")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !strings.Contains(body, `<td class="sp-mono">`+queueID+`</td>`) ||
|
||||
!strings.Contains(body, `<td class="sp-muted">connect to 10.77.0.11[10.77.0.11]:2526: Connection refused</td>`) {
|
||||
t.Fatalf("Inbound › Queue does not list the deferred message %s:\n%.4000s", queueID, body)
|
||||
}
|
||||
if _, body, err = sc.panel.get("/outbound/queue"); err != nil {
|
||||
t.Fatal(err)
|
||||
} else if strings.Contains(body, queueID) {
|
||||
t.Fatalf("Outbound › Queue lists the inbound message %s", queueID)
|
||||
}
|
||||
|
||||
for _, args := range [][]string{{"postsuper", "-e", queueID}, {"postqueue", "-i", queueID}} {
|
||||
if out, err := h.execIn("selfpost", args...); err != nil {
|
||||
t.Fatalf("%s: %v\n%s", strings.Join(args, " "), err, out)
|
||||
|
||||
Reference in New Issue
Block a user