bind9/bin/tests/system/serve_stale
Ondřej Surý 0c0e905615
Add pytest serve_stale TCP-fallback regression tests
The serve_stale shell suite uses a UDP-only perl mock as its
authoritative server.  Now that the resolver escalates to TCP after
repeated UDP timeouts, three steps in serve_stale/tests.sh that
exercise resolver-query-timeout behaviour no longer reach the
timeout — the TCP fallback short-circuits to SERVFAIL via
`connection refused` on the perl mock.

Move those scenarios to a new system test directory
`bin/tests/system/serve_stale_tcp/` that uses a
ControllableAsyncDnsServer mock listening on both UDP and TCP, so
the resolver's TCP path is exercised end-to-end and the original
timing semantics are preserved.  Remove the corresponding shell
steps from serve_stale/tests.sh.

Assisted-by: Claude:claude-opus-4-7
2026-05-19 11:18:30 +02:00
..
ans2 Rename all system test to use underscore 2026-03-18 14:32:33 +01:00
ans8 Rename all system test to use underscore 2026-03-18 14:32:33 +01:00
ns1 Add serve-stale test case for CNAME to A 2026-05-17 08:42:05 +00:00
ns3 Add serve-stale test case for CNAME to A 2026-05-17 08:42:05 +00:00
ns4 Remove license headers from named.conf test files 2026-03-31 17:57:58 +02:00
ns5 Remove license headers from named.conf test files 2026-03-31 17:57:58 +02:00
ns6 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns7 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
.gitignore Rename all system test to use underscore 2026-03-18 14:32:33 +01:00
prereq.sh Rename all system test to use underscore 2026-03-18 14:32:33 +01:00
tests.sh Add pytest serve_stale TCP-fallback regression tests 2026-05-19 11:18:30 +02:00
tests_sh_serve_stale.py Add serve-stale test case for CNAME to A 2026-05-17 08:42:05 +00:00