]> granicus.if.org Git - pdns/commitdiff
add remotebackend test
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 5 Oct 2012 09:17:36 +0000 (09:17 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 5 Oct 2012 09:17:36 +0000 (09:17 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2759 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/remotebackend/regression-tests/basic-a-resolution/command [new file with mode: 0755]
modules/remotebackend/regression-tests/basic-a-resolution/description [new file with mode: 0644]
modules/remotebackend/regression-tests/basic-a-resolution/expected_result [new file with mode: 0644]

diff --git a/modules/remotebackend/regression-tests/basic-a-resolution/command b/modules/remotebackend/regression-tests/basic-a-resolution/command
new file mode 100755 (executable)
index 0000000..9e2996a
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cleandig outpost.example.com A
+
diff --git a/modules/remotebackend/regression-tests/basic-a-resolution/description b/modules/remotebackend/regression-tests/basic-a-resolution/description
new file mode 100644 (file)
index 0000000..51497ac
--- /dev/null
@@ -0,0 +1,2 @@
+This test tries to resolve a straight A record that is directly available in
+the database.
diff --git a/modules/remotebackend/regression-tests/basic-a-resolution/expected_result b/modules/remotebackend/regression-tests/basic-a-resolution/expected_result
new file mode 100644 (file)
index 0000000..146e603
--- /dev/null
@@ -0,0 +1,3 @@
+0      outpost.example.com.    IN      A       120     192.168.2.1
+Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='outpost.example.com.', qtype=A