mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-22 10:10:14 -04:00
test that rrsigs are returned for glue with +cd
This commit is contained in:
parent
7d765a3514
commit
b7e73edd12
1 changed files with 12 additions and 0 deletions
|
|
@ -1344,3 +1344,15 @@ def test_unknown_algorithms():
|
|||
isctest.check.noerror(res1)
|
||||
isctest.check.noerror(res2)
|
||||
isctest.check.noadflag(res2)
|
||||
|
||||
|
||||
def test_rrsigs_for_glue():
|
||||
msg = isctest.query.create("ns3.secure.example", "A", cd=True)
|
||||
res = isctest.query.tcp(msg, "10.53.0.4")
|
||||
isctest.check.noerror(res)
|
||||
isctest.check.rr_count_eq(res.answer, 2)
|
||||
assert any(record.rdtype == rdatatype.A for record in res.answer)
|
||||
assert any(
|
||||
record.rdtype == rdatatype.RRSIG and record.covers == rdatatype.A
|
||||
for record in res.answer
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue