2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Add RA flag checks to isctest.check

(cherry picked from commit f2a4c5dcb0)
This commit is contained in:
Nicki Křížek
2025-07-25 11:19:46 +02:00
committed by Evan Hunt
parent a26f1e4f27
commit 9decbd88a3

View File

@@ -58,6 +58,14 @@ def nordflag(message: dns.message.Message) -> None:
assert (message.flags & dns.flags.RD) == 0, str(message)
def raflag(message: dns.message.Message) -> None:
assert (message.flags & dns.flags.RA) != 0, str(message)
def noraflag(message: dns.message.Message) -> None:
assert (message.flags & dns.flags.RA) == 0, str(message)
def section_equal(first_section: list, second_section: list) -> None:
for rrset in first_section:
assert (