]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Test for fake-event support.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 9 May 2007 07:10:55 +0000 (07:10 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 9 May 2007 07:10:55 +0000 (07:10 +0000)
git-svn-id: file:///svn/unbound/trunk@296 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testdata/fwd_trunc.rpl [new file with mode: 0644]

index 8b914e8a9468c24fdc73bf08e2537783542a6556..66c4a4f40a6b6c957789a4fc23c051494b8ad3e2 100644 (file)
@@ -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 (file)
index 0000000..4fa7b05
--- /dev/null
@@ -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