Modify the test to simulate a non-responsive auth as well. As of v5.4.2,
this test should fail, because serve_stale doesn't work with the current
server selection algorithm.
Related #687
integr_tests += [
['rebinding', meson.current_source_dir() / 'rebinding' / 'test.integr'],
- ['serve_stale', meson.current_source_dir() / 'serve_stale' / 'test.integr'],
+ ['serve_stale', meson.current_source_dir() / 'serve_stale' / 'test.integr', [], true],
]
ENTRY_END
RANGE_END
+; K.ROOT-SERVERS.NET.
+; do_not_answer any queries
+RANGE_BEGIN 201 300
+ ADDRESS 193.0.14.129
+ ADDRESS 192.5.6.30
+ ADDRESS 1.2.3.4
+ENTRY_BEGIN
+MATCH opcode subdomain
+ADJUST copy_id copy_query do_not_answer
+REPLY QR SERVFAIL
+SECTION QUESTION
+. IN A
+SECTION AUTHORITY
+SECTION ADDITIONAL
+ENTRY_END
+RANGE_END
+
STEP 1 QUERY
ENTRY_BEGIN
REPLY RD
;ns.example.com. IN A 1.2.3.4
ENTRY_END
+STEP 210 QUERY
+ENTRY_BEGIN
+REPLY RD
+SECTION QUESTION
+www.example.com. IN A
+ENTRY_END
+
+; Must be resolved from expired cache by serve_stale module
+STEP 220 CHECK_ANSWER
+ENTRY_BEGIN
+MATCH all
+REPLY QR RD RA NOERROR
+SECTION QUESTION
+www.example.com. IN A
+SECTION ANSWER
+www.example.com. IN A 10.20.30.40
+;SECTION AUTHORITY
+;example.com. IN NS ns.example.com.
+;SECTION ADDITIONAL
+;ns.example.com. IN A 1.2.3.4
+ENTRY_END
+
SCENARIO_END