]> granicus.if.org Git - pdns/commitdiff
test uninterpreted records, closes #3215
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 14 Jan 2016 16:22:48 +0000 (16:22 +0000)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 14 Jan 2016 16:22:48 +0000 (16:22 +0000)
regression-tests.recursor/config.sh
regression-tests.recursor/simple-rawtypes/command [new file with mode: 0755]
regression-tests.recursor/simple-rawtypes/description [new file with mode: 0644]
regression-tests.recursor/simple-rawtypes/expected_result [new file with mode: 0644]

index 23e0f3880432e0fecb314a096f41c253650381fd..9f159b4eed0db893e1dde2683cc5d3ba107c897c 100755 (executable)
@@ -153,6 +153,9 @@ big.arthur.example.net.  3600 IN TXT "THE QUICK BROWN FOX JUMPS OVER THE LAZY do
 big.arthur.example.net.  3600 IN TXT "THE QUICK BROWN FOX JUMPS OVER THE LAZY Dog"
 big.arthur.example.net.  3600 IN TXT "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOg"
 big.arthur.example.net.  3600 IN TXT "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG"
+srv.arthur.example.net.  3600 IN SRV 0 100 389 server2.example.net.
+rp.arthur.example.net.   3600 IN RP  ahu.ds9a.nl. counter
+type1234.arthur.example.net. 3600 IN TYPE1234 \# 2 4142
 EOF
 
 mkdir $PREFIX.13
diff --git a/regression-tests.recursor/simple-rawtypes/command b/regression-tests.recursor/simple-rawtypes/command
new file mode 100755 (executable)
index 0000000..d5de10e
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+cleandig srv.arthur.example.net srv | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
+cleandig rp.arthur.example.net rp | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
+cleandig type1234.arthur.example.net TYPE1234 | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
diff --git a/regression-tests.recursor/simple-rawtypes/description b/regression-tests.recursor/simple-rawtypes/description
new file mode 100644 (file)
index 0000000..583a821
--- /dev/null
@@ -0,0 +1,2 @@
+Test querying of a few types that the recursor is expected to pass
+along without internal interpretation.
diff --git a/regression-tests.recursor/simple-rawtypes/expected_result b/regression-tests.recursor/simple-rawtypes/expected_result
new file mode 100644 (file)
index 0000000..51c0c3e
--- /dev/null
@@ -0,0 +1,9 @@
+0      srv.arthur.example.net. IN      SRV     3600    0 100 389 server2.example.net.
+Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
+Reply to question for qname='srv.arthur.example.net.', qtype=SRV
+0      rp.arthur.example.net.  IN      RP      3600    ahu.ds9a.nl. counter.arthur.example.net.
+Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
+Reply to question for qname='rp.arthur.example.net.', qtype=RP
+0      type1234.arthur.example.net.    IN      TYPE1234        3600    \# 2 4142
+Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
+Reply to question for qname='type1234.arthur.example.net.', qtype=TYPE1234