From 9decbd88a39dc2948396451713a6464f37be9dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Fri, 25 Jul 2025 11:19:46 +0200 Subject: [PATCH] Add RA flag checks to isctest.check (cherry picked from commit f2a4c5dcb0556e109f7e77807c98564450b4c22a) --- bin/tests/system/isctest/check.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/tests/system/isctest/check.py b/bin/tests/system/isctest/check.py index f1a1485b2e..24d3247fd5 100644 --- a/bin/tests/system/isctest/check.py +++ b/bin/tests/system/isctest/check.py @@ -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 (