From b2eafdf96771c7d7244c69597f36552933c7dbaf Mon Sep 17 00:00:00 2001 From: bert hubert Date: Sat, 3 Oct 2015 07:18:30 +0200 Subject: [PATCH] add a wildcard test for the built-in recursor auth server --- regression-tests.recursor/auth-zones/command | 1 + regression-tests.recursor/auth-zones/expected_result | 3 +++ regression-tests.recursor/config.sh | 1 + 3 files changed, 5 insertions(+) diff --git a/regression-tests.recursor/auth-zones/command b/regression-tests.recursor/auth-zones/command index 8b1819d1c..008afd506 100755 --- a/regression-tests.recursor/auth-zones/command +++ b/regression-tests.recursor/auth-zones/command @@ -2,3 +2,4 @@ cleandig host1.auth-zone.example.net. A | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9] cleandig host1.auth-zone.example.net. AAAA | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/' cleandig host2.auth-zone.example.net. A | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/' cleandig host3.auth-zone.example.net. A | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/' +cleandig you-are.wild.example.net. TXT | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/' diff --git a/regression-tests.recursor/auth-zones/expected_result b/regression-tests.recursor/auth-zones/expected_result index 3534b98a0..3a9144ab1 100644 --- a/regression-tests.recursor/auth-zones/expected_result +++ b/regression-tests.recursor/auth-zones/expected_result @@ -12,3 +12,6 @@ Reply to question for qname='host2.auth-zone.example.net.', qtype=A 0 host3.auth-zone.example.net. IN CNAME 3600 host1.not-auth-zone.example.net. Rcode: 0, RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0 Reply to question for qname='host3.auth-zone.example.net.', qtype=A +0 you-are.wild.example.net. IN TXT 3600 "Hi there!" +Rcode: 0, RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0 +Reply to question for qname='you-are.wild.example.net.', qtype=TXT diff --git a/regression-tests.recursor/config.sh b/regression-tests.recursor/config.sh index f47b92393..3e5b72d65 100755 --- a/regression-tests.recursor/config.sh +++ b/regression-tests.recursor/config.sh @@ -90,6 +90,7 @@ box.answer-cname-in-local.example.net. 3600 IN NS ns.answer-cname-in-local.examp ns.answer-cname-in-local.example.net. 3600 IN A $PREFIX.22 not-auth-zone.example.net. 3600 IN NS ns.not-auth-zone.example.net. ns.not-auth-zone.example.net. 3600 IN A $PREFIX.23 +*.wild.example.net. 3600 IN TXT "Hi there!" EOF mkdir $PREFIX.11 -- 2.40.0