]> 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 15:53:24 +0000 (12:53 -0300)
commita3dbc5fb05332358dfd6cab997d5dda69caefd7b
treedb634b88fb37fb1feb5ce6b19b895f4ecebbaa58
parentfc074f15a828dcb572dc1f75d022918224569a35
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