From: Wouter Wijngaards Date: Wed, 9 May 2007 07:10:55 +0000 (+0000) Subject: Test for fake-event support. X-Git-Tag: release-0.3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7ee0dfbcace445a4affe643950c67346ffbecd4;p=thirdparty%2Funbound.git Test for fake-event support. git-svn-id: file:///svn/unbound/trunk@296 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 8b914e8a9..66c4a4f40 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,7 @@ 9 May 2007: Wouter - outside network cleans up waiting tcp queries on exit. - fallback to TCP. + - testbound replay with retry in TCP mode. 8 May 2007: Wouter - outgoing network keeps list of available tcp buffers for outgoing diff --git a/testdata/fwd_trunc.rpl b/testdata/fwd_trunc.rpl new file mode 100644 index 000000000..4fa7b0538 --- /dev/null +++ b/testdata/fwd_trunc.rpl @@ -0,0 +1,69 @@ +; This is a comment. +; config options go here. +CONFIG_END + +SCENARIO_BEGIN Query forwarded, receives truncated reply. + +STEP 1 QUERY +ENTRY_BEGIN + REPLY RD + SECTION QUESTION + www.example.com. IN A +ENTRY_END +; the query is sent to the forwarder - UDP +STEP 2 CHECK_OUT_QUERY +ENTRY_BEGIN + MATCH qname qtype opcode UDP + SECTION QUESTION + www.example.com. IN A +ENTRY_END +; reply TC bit +STEP 3 REPLY +ENTRY_BEGIN + MATCH opcode qtype qname UDP + ADJUST copy_id + ; authoritative answer + REPLY QR AA RD RA TC NOERROR + SECTION QUESTION + www.example.com. IN A + SECTION ANSWER + www.example.com. IN A 10.20.30.40 +ENTRY_END +; retry in TCP mode. +STEP 4 CHECK_OUT_QUERY +ENTRY_BEGIN + MATCH qname qtype opcode TCP + SECTION QUESTION + www.example.com. IN A +ENTRY_END +STEP 5 REPLY +ENTRY_BEGIN + MATCH opcode qtype qname TCP + ADJUST copy_id + ; authoritative answer + REPLY QR AA RD RA NOERROR + SECTION QUESTION + www.example.com. IN A + SECTION ANSWER + www.example.com. IN A 10.20.30.40 + SECTION AUTHORITY + www.example.com. IN NS ns.example.com. + SECTION ADDITIONAL + ns.example.com. IN A 10.20.30.50 +ENTRY_END +STEP 6 CHECK_ANSWER +ENTRY_BEGIN + MATCH all + ; first reply, have AA set. + REPLY QR AA RD RA + SECTION QUESTION + www.example.com. IN A + SECTION ANSWER + www.example.com. IN A 10.20.30.40 + SECTION AUTHORITY + www.example.com. IN NS ns.example.com. + SECTION ADDITIONAL + ns.example.com. IN A 10.20.30.50 +ENTRY_END + +SCENARIO_END