From: Peter van Dijk Date: Thu, 18 Jul 2019 15:35:35 +0000 (+0200) Subject: add notified_serial range test to pdnsutil test-schema X-Git-Tag: auth-4.2.0-rc3~11^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1f4c3546ed8d57353775e0850df629c8b6d8a64;p=pdns add notified_serial range test to pdnsutil test-schema (cherry picked from commit afdeeff28bfdcbed5ce6fb19190e94ba4b10ccbd) --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index ff4fcdb2c..0f749d9f2 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1867,6 +1867,20 @@ void testSchema(DNSSECKeeper& dk, const DNSName& zone) return; } cout<<"[+] ordername sorting is correct for names starting with _"<setNotified(di.id, 500); + db->getDomainInfo(zone, di); + if(di.notified_serial != 500) { + cout<<"[-] Set serial 500, got back "<setNotified(di.id, 2147484148); + db->getDomainInfo(zone, di); + if(di.notified_serial != 2147484148) { + cout<<"[-] Set serial 2147484148, got back "<