bind9/bin/tests
Diego Fronza bea63000db Add system tests for stale-answer-client-timeout
This commit add 4 tests for the new option:
	1. Test default configuration of stale-answer-client-timeout, a
	   value of 1.8 seconds, with stale-refresh-time disabled.

	2. Test disabling of stale-answer-client-timeout.

	3. Test stale-answer-client-timeout with a value of zero, in this
	   case we take advantage of a log entry which shows that a stale
	   answer was promptly used before an attempt to refresh the RRset
	   is made. We also check, by activating a disabled authoritative
	   server, that the RRset was successfully refreshed after that.

	4. Test stale-answer-client-timeout 0 with stale-refresh-time 4, in
	   this test we want to ensure a couple things:

	   - If we have a stale RRSet entry in cache, a request must be
		 promptly answered with this data, while BIND must also attempt
		 to refresh the RRSet in background.

	   - If the attempt to refresh the RRSet times out, the RRSet must
		 have its stale-refresh-time window activated.

	   - If a new request for the same RRSet arrives, it must be
		 promptly answered with stale data due to stale-refresh-time
		 being active for this RRSet, in this case no attempt to refresh
		 the RRSet is made.

	   - Enable authoritative server, ensure that the RRSet was not
		 refreshed, to honor stale-refresh-time.

	   - Wait for stale-refresh-window time pass, send another request
		 for the same RRSet, this time we expect the answer to be the
		 stale entry in cache being hit due to
		 stale-answer-client-timeout 0.

	    - Send another request, this time we expect the answer to be an
		  active RRSet, since it must have been refreshed during the
		  previous request.

(cherry picked from commit 35fd039d03)
2021-01-29 10:39:20 +01:00
..
bigtest update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
optional add "primaries" as a synonym for "masters" in named.conf 2021-01-12 15:21:14 +01:00
pkcs11 update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
startperf update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
system Add system tests for stale-answer-client-timeout 2021-01-29 10:39:20 +01:00
testdata/wire move all optional tests from bin/tests to bin/tests/optional 2018-03-09 14:12:47 -08:00
win32 Add libssl libraries to Windows build 2020-12-09 10:46:16 +01:00
.gitignore Remove genrandom command and all usage of specific random files throughout the system test suite 2018-05-16 09:54:35 +02:00
cfg_test.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
fromhex.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
headerdep_test.sh.in update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Makefile.in Resolve the overlinking of the system libraries 2020-05-11 09:49:54 +02:00
makejournal.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
named.conf update documentation 2019-06-05 07:49:57 -07:00
prepare-softhsm2.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
wire_test.c The dns_message_create() cannot fail, change the return to void 2020-09-30 14:26:26 +02:00