Browse Source

new test cases, and regenerated the previous test data with some minor
correction.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1060 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 15 years ago
parent
commit
bec5512afb

+ 3 - 3
src/lib/dns/cpp/tests/testdata/message_fromWire10

@@ -3,9 +3,9 @@
 ###
 
 # Header Section
-# ID=4149 QR=Query Opcode=QUERY(0) Rcode=NOERROR(0) RD
-1035 0100
-# QDCNT=1, ANCNT=0, NSCNT=0, ARCND=1
+# ID=4149 QR=Response Opcode=QUERY(0) Rcode=NOERROR(0) RD
+1035 8100
+# QDCNT=1, ANCNT=0, NSCNT=0, ARCNT=1
 0001 0000 0000 0001
 
 # Question Section

+ 2 - 1
src/lib/dns/cpp/tests/testdata/message_fromWire10.spec

@@ -1,8 +1,9 @@
 #
-# A simple DNS query message with an EDNS0 indicating a BADVERS error
+# A simple DNS response message with an EDNS0 indicating a BADVERS error
 #
 
 [header]
+qr: response
 rd: 1
 arcount: 1
 [question]

+ 19 - 0
src/lib/dns/cpp/tests/testdata/message_fromWire11

@@ -0,0 +1,19 @@
+###
+### This data file was auto-generated from message_fromWire11.spec
+###
+
+# Header Section
+# ID=4149 QR=Response Opcode=QUERY(0) Rcode=15 RD
+1035 810f
+# QDCNT=1, ANCNT=0, NSCNT=0, ARCND=1
+0001 0000 0000 0001
+
+# Question Section
+# QNAME=example.com. QTYPE=A(1) QCLASS=IN(1)
+076578616d706c6503636f6d00 0001 0001
+
+# EDNS OPT RR
+# NAME=. TYPE=OPT(41) UDPSize=4096 ExtRcode=255 Version=0 DO=1
+00 0029 1000 ff00 8000
+# RDLEN=0
+0000

+ 15 - 0
src/lib/dns/cpp/tests/testdata/message_fromWire11.spec

@@ -0,0 +1,15 @@
+#
+# A simple DNS response message with an EDNS0 indicating the maximum error code
+# (0xfff)
+#
+
+[header]
+qr: response
+rd: 1
+rcode: 0xf
+arcount: 1
+[question]
+# use default
+[edns]
+do: 1
+extrcode: 0xff