Testsuite: extend retry-records testcase to check removal
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 9 Oct 2021 10:37:17 +0000 (11:37 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 9 Oct 2021 10:40:14 +0000 (11:40 +0100)
test/confs/0610
test/log/0610
test/scripts/0000-Basic/0610
test/stdout/0610

index 5ce2723aeee6f2f083533362c63b3d76217b3e28..370391b9579ead0731809ce53e48785de416ead4 100644 (file)
@@ -21,7 +21,9 @@ queue_run_in_order
 begin acl
 
 conn_chk:
+.ifdef DELAY
   defer        condition = ${if eq {SERVER}{server}}
+.endif
   accept
 
 # ----- Routers -----
@@ -62,7 +64,7 @@ t2:
 
 begin retry
 
-* * F,5d,10s
+* * F,5d,1s
 
 # End
 
index d741a86a99b771061f2d6399241047b5c26c3b9f..63303e891226cf65faf33ad0fa7a90beaf03ed53 100644 (file)
@@ -6,8 +6,17 @@
 1999-03-02 09:44:33 10HmaY-0005vi-00 H=127.0.0.1 [127.0.0.1]: SMTP error from remote mail server after initial connection: 451 Temporary local problem - please try later
 1999-03-02 09:44:33 10HmaY-0005vi-00 == fred@anotherone.tld R=r2 T=t2 defer (0) H=127.0.0.1 [127.0.0.1]: SMTP error from remote mail server after initial connection: 451 Temporary local problem - please try later
 1999-03-02 09:44:33 End queue run: pid=pppp -qq
+1999-03-02 09:44:33 Start queue run: pid=pppp -qq
+1999-03-02 09:44:33 10HmaX-0005vi-00 => fred@anotherone.tld F=<t1@dustyshoes.tld> R=r1 T=t1 H=127.0.0.1 [127.0.0.1] C="250 OK id=10HmaZ-0005vi-00"
+1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
+1999-03-02 09:44:33 10HmaY-0005vi-00 => fred@anotherone.tld F=<t2@dustybelt.tld> R=r2 T=t2 H=127.0.0.1 [127.0.0.1] C="250 OK id=10HmbA-0005vi-00"
+1999-03-02 09:44:33 10HmaY-0005vi-00 Completed
+1999-03-02 09:44:33 End queue run: pid=pppp -qq
 
 ******** SERVER ********
 1999-03-02 09:44:33 exim x.yz daemon started: pid=pppp, no queue runs, listening for SMTP on port PORT_D
 1999-03-02 09:44:33 H=[127.0.0.1] temporarily rejected connection in "connect" ACL
 1999-03-02 09:44:33 H=[ip4.ip4.ip4.ip4] temporarily rejected connection in "connect" ACL
+1999-03-02 09:44:33 exim x.yz daemon started: pid=pppp, no queue runs, listening for SMTP on port PORT_D
+1999-03-02 09:44:33 10HmaZ-0005vi-00 <= t1@dustyshoes.tld H=localhost (the.local.host.name) [127.0.0.1] P=esmtp S=sss id=E10HmaX-0005vi-00@the.local.host.name
+1999-03-02 09:44:33 10HmbA-0005vi-00 <= t2@dustybelt.tld H=the.local.host.name [ip4.ip4.ip4.ip4] P=esmtp S=sss id=E10HmaY-0005vi-00@the.local.host.name
index 758e7fb432957685f7bb053ea6daf7c7f444982b..348de2f130951d57ba09152456752455a6ea971b 100644 (file)
@@ -1,7 +1,7 @@
 # retry: transport with fixed interface
 # Exim test configuration 0610
 #
-exim -DSERVER=server -bd -oX PORT_D
+exim -DSERVER=server -DDELAY=y -bd -oX PORT_D
 ****
 #
 exim -bs
@@ -29,6 +29,16 @@ exim -qq
 # Should get two separate retry records.
 dump retry
 #
+# Arrange final delivery of both; retry records should be removed.
+killdaemon
+sleep 1
+exim -DSERVER=server -bd -oX PORT_D
+****
+exim -qq
+****
+dump retry
+# just so the output is hard to misread
+dump retry
 #
 killdaemon
 no_msglog_check
index 6b1d7a7104eb86c4f2f511abd88b047d04a44169..b0c31adbdc75c15804d8746db6d5ffd303bf4b9f 100644 (file)
@@ -12,6 +12,8 @@
 221 the.local.host.name closing connection\r
 +++++++++++++++++++++++++++
   T:127.0.0.1:127.0.0.1:1225/127.0.0.1 0 65 H=127.0.0.1 [127.0.0.1]: SMTP error from remote mail server after initial connection: 451 Temporary local problem - please try later
-first failed = time last try = time2 next try = time2 + 10
+first failed = time last try = time2 next try = time2 + 2
   T:127.0.0.1:127.0.0.1:1225/ip4.ip4.ip4.ip4 0 65 H=127.0.0.1 [127.0.0.1]: SMTP error from remote mail server after initial connection: 451 Temporary local problem - please try later
-first failed = time last try = time2 next try = time2 + 10
+first failed = time last try = time2 next try = time2 + 2
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++