From: Kees Monshouwer Date: Thu, 10 Jan 2019 21:29:39 +0000 (+0100) Subject: auth: soaedit test by @Habbie X-Git-Tag: rec-4.2.0-rc1~13^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd0822b98e0fdba4985337e60c7d34c40e875028;p=thirdparty%2Fpdns.git auth: soaedit test by @Habbie --- diff --git a/regression-tests.nobackend/soa-edit/command b/regression-tests.nobackend/soa-edit/command index a433d60d22..88cd97cf8c 100755 --- a/regression-tests.nobackend/soa-edit/command +++ b/regression-tests.nobackend/soa-edit/command @@ -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 diff --git a/regression-tests.nobackend/soa-edit/expected_result b/regression-tests.nobackend/soa-edit/expected_result index 44de3d57e8..7f9d928e23 100644 --- a/regression-tests.nobackend/soa-edit/expected_result +++ b/regression-tests.nobackend/soa-edit/expected_result @@ -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