]> git.ipfire.org Git - thirdparty/bind9.git/commit
Added system test for stale-refresh-time
authorDiego Fronza <diego@isc.org>
Tue, 20 Oct 2020 00:25:34 +0000 (21:25 -0300)
committerDiego Fronza <diego@isc.org>
Wed, 11 Nov 2020 19:01:59 +0000 (16:01 -0300)
commit0123a0f44f48eb24aceb744a11440b42929bdac1
treef3e60dbdae77e3b4d628ef45755d79684b56a14b
parente8c3d538d540b57b97a9d9ee4fdb1b31cf93a711
Added system test for stale-refresh-time

This test works as follow:
- Query for data.example rrset.
- Sleep until its TTL expires (2 secs).
- Disable authoritative server.
- Query for data.example again.
- Since server is down, answer come from stale cache, which has
  a configured stale-answer-ttl of 3 seconds.
- Enable authoritative server.
- Query for data.example again
- Since last query before activating authoritative server failed, and
  since 'stale-refresh-time' seconds hasn't elapsed yet, answer should
  come from stale cache and not from the authoritative server.
bin/tests/system/serve-stale/tests.sh