]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Template entry for unit test.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 18 Oct 2016 14:27:08 +0000 (14:27 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 18 Oct 2016 14:27:08 +0000 (14:27 +0000)
git-svn-id: file:///svn/unbound/trunk@3893 be551aaa-1e26-0410-a405-d3ace91eadb9

testdata/local_cname.rpl [new file with mode: 0644]

diff --git a/testdata/local_cname.rpl b/testdata/local_cname.rpl
new file mode 100644 (file)
index 0000000..8ca0115
--- /dev/null
@@ -0,0 +1,57 @@
+; config options
+server:
+       # put unbound.conf config options here.
+        target-fetch-policy: "0 0 0 0 0"
+
+# send the queries to the test server (see the 10.0.10.3 entries below)
+forward-zone:
+       name: "."
+       forward-addr: 10.0.10.3
+CONFIG_END
+
+; short one-line description of scenario:
+SCENARIO_BEGIN Test local-data CNAME aliases
+
+; Specification of the answers that the upstream server provides to unbound
+RANGE_BEGIN 0 1000
+       ADDRESS 10.0.10.3
+; put entries here with answers to specific qname, qtype
+
+ENTRY_BEGIN
+MATCH opcode qtype qname
+ADJUST copy_id
+REPLY QR NOERROR
+SECTION QUESTION
+example.com. IN A
+SECTION ANSWER
+example.com. IN A 1.2.3.4
+SECTION AUTHORITY
+SECTION ADDITIONAL
+ENTRY_END
+
+; end of entries with answers from upstream server
+RANGE_END
+; Steps where queries are sent, one at a time, to unbound.
+; QUERY is what the downstream client sends to unbound.
+; CHECK_ANSWER contains the response from unbound.
+
+STEP 10 QUERY
+ENTRY_BEGIN
+REPLY RD
+SECTION QUESTION
+example.com. IN A
+ENTRY_END
+
+STEP 20 CHECK_ANSWER
+ENTRY_BEGIN
+MATCH all
+REPLY QR RD RA NOERROR
+SECTION QUESTION
+example.com. IN A
+SECTION ANSWER
+example.com. IN A   1.2.3.4
+SECTION AUTHORITY
+SECTION ADDITIONAL
+ENTRY_END
+
+SCENARIO_END