fixup! Add NSEC3 optout large delegation zone test case

This commit is contained in:
Ondřej Surý
2025-12-05 20:53:43 +01:00
parent 3d067de42a
commit 82639f7f75

View File

@@ -13,6 +13,7 @@
import os
import re
import sys
import isctest
@@ -48,10 +49,10 @@ pytestmark = [
def has_nsec3param(zone, response):
match = f"{zone}. 0 IN NSEC3PARAM 1 0 0 -"
match = rf"{re.escape(zone)}\.\s+\d+\s+IN\s+NSEC3PARAM\s+1\s+0\s+0\s+-"
for rr in response.answer:
if match in rr.to_text():
if re.search(match, rr.to_text()):
return True
return False