Commit 0ce1485ff9 for bind
commit 0ce1485ff9fa52401d7be58a59d420b6870c84e7
Author: Štěpán Balážik <stepan@isc.org>
Date: Mon Oct 26 18:29:02 2026 +0100
Flush the resolver cache before each nsec_wildcard_wrong_zone test
ns2 kept the NSECs of ans1's wildcard answer to the DS query in the
attack test and answered the wildcard NODATA control from them, so in
file order that test never reached ans1. With the cache flushed, each
test sends ans1 the same queries as when it runs alone.
Assisted-by: Claude:claude-fable-5-1
diff --git a/bin/tests/system/nsec_wildcard_wrong_zone/tests_nsec_wildcard_wrong_zone.py b/bin/tests/system/nsec_wildcard_wrong_zone/tests_nsec_wildcard_wrong_zone.py
index b7df7d0e8b..cdfe5ca5df 100644
--- a/bin/tests/system/nsec_wildcard_wrong_zone/tests_nsec_wildcard_wrong_zone.py
+++ b/bin/tests/system/nsec_wildcard_wrong_zone/tests_nsec_wildcard_wrong_zone.py
@@ -44,6 +44,11 @@ def bootstrap():
return {"trust_anchors": trust_anchors}
+@pytest.fixture(autouse=True)
+def autouse_flush_resolver_cache(ns2):
+ ns2.rndc("flush")
+
+
def test_forged_response_contains_cross_zone_nsec(ans1):
response = isctest.query.tcp(isctest.query.create(ATTACK, "A"), ans1.ip)
isctest.check.nxdomain(response)