From f84d14c8be2700e265a47d94022641ed246fed5a Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 14 Jan 2016 16:22:48 +0000 Subject: [PATCH] test uninterpreted records, closes #3215 --- regression-tests.recursor/config.sh | 3 +++ regression-tests.recursor/simple-rawtypes/command | 4 ++++ regression-tests.recursor/simple-rawtypes/description | 2 ++ .../simple-rawtypes/expected_result | 9 +++++++++ 4 files changed, 18 insertions(+) create mode 100755 regression-tests.recursor/simple-rawtypes/command create mode 100644 regression-tests.recursor/simple-rawtypes/description create mode 100644 regression-tests.recursor/simple-rawtypes/expected_result diff --git a/regression-tests.recursor/config.sh b/regression-tests.recursor/config.sh index 23e0f3880..9f159b4ee 100755 --- a/regression-tests.recursor/config.sh +++ b/regression-tests.recursor/config.sh @@ -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 index 000000000..d5de10e48 --- /dev/null +++ b/regression-tests.recursor/simple-rawtypes/command @@ -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 index 000000000..583a8213d --- /dev/null +++ b/regression-tests.recursor/simple-rawtypes/description @@ -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 index 000000000..51c0c3ed9 --- /dev/null +++ b/regression-tests.recursor/simple-rawtypes/expected_result @@ -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 -- 2.40.0