]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: soaedit test by @Habbie
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 10 Jan 2019 21:29:39 +0000 (22:29 +0100)
committermind04 <mind04@monshouwer.org>
Wed, 15 May 2019 13:16:34 +0000 (15:16 +0200)
regression-tests.nobackend/soa-edit/command
regression-tests.nobackend/soa-edit/expected_result

index a433d60d22927fbbbd3296fd4aff2d1d2dc80ff8..88cd97cf8c63287b06a4ad908ce006a6a022ef79 100755 (executable)
@@ -37,8 +37,13 @@ faketime -m -f -$delta $PDNS --config-dir=soa-edit &
 bindwait
 
 $SDIG 127.0.0.1 $port minimal.com SOA | LC_ALL=C sort
+$SDIG 127.0.0.1 $port minimal.com MX | LC_ALL=C sort
+$SDIG 127.0.0.1 $port nx.minimal.com MX | LC_ALL=C sort
 sleep 15
+echo midnight has passed
 $SDIG 127.0.0.1 $port minimal.com SOA | LC_ALL=C sort
-       
+$SDIG 127.0.0.1 $port minimal.com MX | LC_ALL=C sort
+$SDIG 127.0.0.1 $port nx.minimal.com MX | LC_ALL=C sort
+
 kill $(cat pdns*.pid)
 rm pdns*.pid
index 44de3d57e81e0017eff6077686b0e7bc98fb2392..7f9d928e23af1f8051c491436a87a34bc73ba9a2 100644 (file)
@@ -2,6 +2,19 @@ Set 'minimal.com' meta SOA-EDIT = INCREMENT-WEEKS
 0      minimal.com.    IN      SOA     120     ns1.example.com. ahu.example.com. 2000083846 28800 7200 604800 86400
 Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
 Reply to question for qname='minimal.com.', qtype=SOA
+1      minimal.com.    IN      SOA     120     ns1.example.com. ahu.example.com. 2000083846 28800 7200 604800 86400
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='minimal.com.', qtype=MX
+1      minimal.com.    IN      SOA     120     ns1.example.com. ahu.example.com. 2000083846 28800 7200 604800 86400
+Rcode: 3 (Non-Existent domain), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='nx.minimal.com.', qtype=MX
+midnight has passed
 0      minimal.com.    IN      SOA     120     ns1.example.com. ahu.example.com. 2000083847 28800 7200 604800 86400
 Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
 Reply to question for qname='minimal.com.', qtype=SOA
+1      minimal.com.    IN      SOA     120     ns1.example.com. ahu.example.com. 2000083847 28800 7200 604800 86400
+Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='minimal.com.', qtype=MX
+1      minimal.com.    IN      SOA     120     ns1.example.com. ahu.example.com. 2000083847 28800 7200 604800 86400
+Rcode: 3 (Non-Existent domain), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='nx.minimal.com.', qtype=MX