From: Wouter Wijngaards Date: Tue, 27 Mar 2007 07:57:33 +0000 (+0000) Subject: Not cached test. X-Git-Tag: release-0.2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46aeacc72303be007ecee35adc258a674411d2ee;p=thirdparty%2Funbound.git Not cached test. git-svn-id: file:///svn/unbound/trunk@198 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 756d7349c..5e67f645e 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +27 March 2007: Wouter + - added test for cache and not cached answers, in testbound replays. + 26 March 2007: Wouter - config settings for slab hash message cache. - test for cached answer. diff --git a/testdata/fwd_notcached.rpl b/testdata/fwd_notcached.rpl new file mode 100644 index 000000000..cf6a5a8c5 --- /dev/null +++ b/testdata/fwd_notcached.rpl @@ -0,0 +1,75 @@ +; This is a comment. + +SCENARIO_BEGIN Query receives answer not from the cache + +STEP 1 QUERY +ENTRY_BEGIN + SECTION QUESTION + www.example.com. IN A +ENTRY_END +; the query is sent to the forwarder - no cache yet. +STEP 2 CHECK_OUT_QUERY +ENTRY_BEGIN + MATCH qname qtype opcode + SECTION QUESTION + www.example.com. IN A +ENTRY_END +STEP 3 REPLY +ENTRY_BEGIN + MATCH opcode qtype qname + ADJUST copy_id + 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 + www.example.com. IN NS ns.example.com. + SECTION ADDITIONAL + ns.example.com. IN A 10.20.30.50 +ENTRY_END +STEP 4 CHECK_ANSWER +ENTRY_BEGIN + MATCH opcode qname qtype + SECTION QUESTION + www.example.com. IN A + SECTION ANSWER + www.example.com. IN A 10.20.30.40 +ENTRY_END + +; another query, different, so not from cache. +STEP 5 QUERY +ENTRY_BEGIN + SECTION QUESTION + www.example.net. IN A +ENTRY_END +STEP 6 CHECK_OUT_QUERY +ENTRY_BEGIN + MATCH qname qtype opcode + SECTION QUESTION + www.example.net. IN A +ENTRY_END +STEP 7 REPLY +ENTRY_BEGIN + MATCH opcode qtype qname + ADJUST copy_id + REPLY QR RD RA NOERROR + SECTION QUESTION + www.example.net. IN A + SECTION ANSWER + www.example.net. IN A 10.20.30.60 + SECTION AUTHORITY + www.example.net. IN NS ns.example.net. + SECTION ADDITIONAL + ns.example.net. IN A 10.20.30.50 +ENTRY_END +STEP 8 CHECK_ANSWER +ENTRY_BEGIN + MATCH opcode qname qtype + SECTION QUESTION + www.example.net. IN A + SECTION ANSWER + www.example.net. IN A 10.20.30.60 +ENTRY_END + +SCENARIO_END