From afdeeff28bfdcbed5ce6fb19190e94ba4b10ccbd Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 18 Jul 2019 17:35:35 +0200 Subject: [PATCH] add notified_serial range test to pdnsutil test-schema --- pdns/pdnsutil.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 8eb3f016d..c421219b7 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1868,6 +1868,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 "<