From: Pieter Lexis Date: Thu, 28 Apr 2016 12:33:12 +0000 (+0200) Subject: Add DNSSEC wilcard test X-Git-Tag: rec-4.0.0-alpha3~31^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdb27cb27f5d1f9530145067b0e4388495bd46de;p=pdns Add DNSSEC wilcard test --- diff --git a/regression-tests.recursor-dnssec/basicDNSSEC.py b/regression-tests.recursor-dnssec/basicDNSSEC.py index b58ecc8da..8a9581033 100644 --- a/regression-tests.recursor-dnssec/basicDNSSEC.py +++ b/regression-tests.recursor-dnssec/basicDNSSEC.py @@ -81,3 +81,11 @@ class BasicDNSSEC(RecursorTest): self.assertRcodeEqual(res, dns.rcode.NXDOMAIN) self.assertMessageIsAuthenticated(res) + + def testSecureWildcardAnswer(self): + res = self.sendQuery('something.wildcard.secure.example.', 'A') + expected = dns.rrset.from_text('something.wildcard.secure.example.', 0, dns.rdataclass.IN, 'A', '192.0.2.10') + + self.assertRcodeEqual(res, dns.rcode.NOERROR) + self.assertMatchingRRSIGInAnswer(res, expected) + self.assertMessageIsAuthenticated(res) diff --git a/regression-tests.recursor-dnssec/recursortests.py b/regression-tests.recursor-dnssec/recursortests.py index 887519055..ffbdd180f 100644 --- a/regression-tests.recursor-dnssec/recursortests.py +++ b/regression-tests.recursor-dnssec/recursortests.py @@ -98,6 +98,8 @@ ns.secure.example. 3600 IN A {prefix}.9 host1.secure.example. 3600 IN A 192.0.2.2 host1.sub.secure.example. 3600 IN A 192.0.2.11 + +*.wildcard.secure.example. 3600 IN A 192.0.2.10 """, 'bogus.example': """ bogus.example. 3600 IN SOA {soa}