From: Mark Andrews Date: Wed, 8 Jul 2026 02:19:28 +0000 (+1000) Subject: Extend test_hooks_zonetemplate2 test X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=63368dc24412846f407119ced70e623908072d6d;p=thirdparty%2Fbind9.git Extend test_hooks_zonetemplate2 test The test_hooks_zonetemplate2 test failed to properly check first label matches. --- diff --git a/bin/tests/system/hooks/tests_hooks.py b/bin/tests/system/hooks/tests_hooks.py index 247ac9a10b8..5c638a07dae 100644 --- a/bin/tests/system/hooks/tests_hooks.py +++ b/bin/tests/system/hooks/tests_hooks.py @@ -72,6 +72,16 @@ def test_hooks_zonetemplate2(): res = isctest.query.udp(msg, "10.53.0.2") isctest.check.rcode(res, dns.rcode.NOTZONE) + # test that the skip label is not matched add suffix + msg = isctest.query.create("skipfooX.example4.com", "A") + res = isctest.query.udp(msg, "10.53.0.2") + isctest.check.rcode(res, dns.rcode.NOTAUTH) + + # test that the skip label is not matched add prefix + msg = isctest.query.create("Xskipfoo.example4.com", "A") + res = isctest.query.udp(msg, "10.53.0.2") + isctest.check.rcode(res, dns.rcode.NOTAUTH) + def test_hooks_zone_rndc_reload(servers): ns2 = servers["ns2"]