Skip to content

Commit

Permalink
assert key_tag too
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Jan 17, 2025
1 parent 1d5c4ea commit 18f17eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regression-tests.auth-py/test_DirectDNSKEYSignature.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def testDNSKEYQuery(self):
self.assertTrue(dnskey_found, "DNSKEY record not found in the answer section")

# Validate RRSIG record for DNSKEY
rrsig_found = any(rrset.rdtype == dns.rdatatype.RRSIG and rrset.covers == dns.rdatatype.DNSKEY for rrset in res.answer)
rrsig_found = any(rrset.rdtype == dns.rdatatype.RRSIG and rrset.covers == dns.rdatatype.DNSKEY and rrset[0].key_tag == 22273 for rrset in res.answer)
self.assertTrue(rrsig_found, "RRSIG for DNSKEY not found in the answer section")

def testDNSKEYQueryWithoutDNSSEC(self):
Expand Down

0 comments on commit 18f17eb

Please sign in to comment.