bind9/bin
Nicki Křížek c2c2be9be0 Restrict cross-test jinja2 includes to _common/
The previous loader was a FileSystemLoader rooted at $srcdir, which
allowed any system test to include any other test's templates -- a
wider scope than intended. Every existing cross-test include already
targets _common/, so make that the only path.

ChoiceLoader + PrefixLoader keeps the existing '_common/foo.j2' path
convention working without changes to call sites. The '_common/'
prefix is deliberately kept rather than dropping it by rooting the
FileSystemLoader at _common/ directly:

  - It signals at the include site that the file is a shared
    template, not a sibling of the current test; readers don't need
    to know the loader configuration to understand where the file
    lives.
  - It prevents shadowing: a test-local 'controls.conf.j2' would
    not collide with the shared one, and the unqualified name keeps
    its test-local meaning.
  - It makes the dependency greppable: 'grep -rl _common/'
    identifies every test that consumes shared snippets.

Assisted-by: Claude:claude-opus-4-7
2026-05-27 16:25:44 +02:00
..
check Resolve ERR_MISSING_GLUE / ERR_EXTRA_AAAA value collision 2026-04-29 17:31:23 +02:00
confgen Allow any valid DNS name as a key name 2026-05-15 10:14:46 +02:00
delv Skip detach when delv's client never created 2026-04-30 10:56:11 +02:00
dig Bound EDNS option length in dig's process_opt() walk 2026-05-01 07:19:49 +02:00
dnssec Replace INSIST in KSR DNSKEY parser with a structured error 2026-05-05 21:06:30 +02:00
include Remove NZF support, make LMDB required for new zone storage 2026-03-18 11:02:33 +01:00
named Merge tag 'v9.21.22' 2026-05-20 10:26:28 +00:00
nsupdate nsupdate does not handle zero length RDATA well 2026-04-09 09:24:47 +10:00
plugins Apply the dns_rdataset_cleanup patch through the codebase 2025-12-17 15:19:55 +01:00
rndc Dump delegation database in 'rndc dumpdb' 2026-03-30 20:41:13 +02:00
tests Restrict cross-test jinja2 includes to _common/ 2026-05-27 16:25:44 +02:00
tools Validate nsec3hash arguments instead of relying on atoi() 2026-05-21 13:34:50 +02:00
meson.build replace the build system with meson 2025-06-11 10:30:12 +03:00