From: Ruben d'Arco Date: Thu, 9 May 2013 18:43:40 +0000 (+0200) Subject: Add regression test for previous commit X-Git-Tag: rec-3.6.0-rc1~556^2~3^2~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6bab3c6351d49844291d739c7957fe6ce2df1cde;p=thirdparty%2Fpdns.git Add regression test for previous commit --- diff --git a/regression-tests/1dyndns-update-delete-parent-delegate/command b/regression-tests/1dyndns-update-delete-parent-delegate/command new file mode 100755 index 0000000000..9f71b75c01 --- /dev/null +++ b/regression-tests/1dyndns-update-delete-parent-delegate/command @@ -0,0 +1,35 @@ +#!/bin/sh + +mysqldiff + +cleannsupdate <>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if delegates are added. +--- Start: diff start step.1 --- +> a.b.c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 +> c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 +--- End: diff start step.1 --- + +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if c.delegate.test.dyndns. was removed correctly. +--- Start: diff start step.2 --- +> a.b.c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 +--- End: diff start step.2 --- + +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if records are all removed +--- Start: diff start step.3 --- +no differnce +--- End: diff start step.3 --- + diff --git a/regression-tests/1dyndns-update-delete-parent-delegate/expected_result.dnssec b/regression-tests/1dyndns-update-delete-parent-delegate/expected_result.dnssec new file mode 100644 index 0000000000..bba0c5d1ba --- /dev/null +++ b/regression-tests/1dyndns-update-delete-parent-delegate/expected_result.dnssec @@ -0,0 +1,34 @@ +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if delegates are added. +--- Start: diff start step.1 --- +> a.b.c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 'delegate c b a' 0 +> c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 'delegate c' 0 +--- End: diff start step.1 --- + +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if c.delegate.test.dyndns. was removed correctly. +--- Start: diff start step.2 --- +> a.b.c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 'delegate c b a' 0 +--- End: diff start step.2 --- + +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if records are all removed +--- Start: diff start step.3 --- +no differnce +--- End: diff start step.3 --- + diff --git a/regression-tests/1dyndns-update-delete-parent-delegate/expected_result.narrow b/regression-tests/1dyndns-update-delete-parent-delegate/expected_result.narrow new file mode 100644 index 0000000000..16e101b54e --- /dev/null +++ b/regression-tests/1dyndns-update-delete-parent-delegate/expected_result.narrow @@ -0,0 +1,59 @@ +TODO: UPDATE! + +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if delegates are added. +--- Start: diff start step.1 --- +< test.dyndns MX 10 host-1.test.dyndns 3600 NULL 1 +< test.dyndns MX 20 host-2.test.dyndns 3600 NULL 1 +< test.dyndns NS 0 ns1.test.dyndns 3600 NULL 1 +< test.dyndns NS 0 ns2.test.dyndns 3600 NULL 1 +> a.b.c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 NULL 0 +> c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 NULL 0 +> test.dyndns MX 10 host-1.test.dyndns 3600 '' 1 +> test.dyndns MX 20 host-2.test.dyndns 3600 '' 1 +> test.dyndns NS 0 ns1.test.dyndns 3600 '' 1 +> test.dyndns NS 0 ns2.test.dyndns 3600 '' 1 +--- End: diff start step.1 --- + +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if c.delegate.test.dyndns. was removed correctly. +--- Start: diff start step.2 --- +< test.dyndns MX 10 host-1.test.dyndns 3600 NULL 1 +< test.dyndns MX 20 host-2.test.dyndns 3600 NULL 1 +< test.dyndns NS 0 ns1.test.dyndns 3600 NULL 1 +< test.dyndns NS 0 ns2.test.dyndns 3600 NULL 1 +> a.b.c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 NULL 0 +> test.dyndns MX 10 host-1.test.dyndns 3600 '' 1 +> test.dyndns MX 20 host-2.test.dyndns 3600 '' 1 +> test.dyndns NS 0 ns1.test.dyndns 3600 '' 1 +> test.dyndns NS 0 ns2.test.dyndns 3600 '' 1 +--- End: diff start step.2 --- + +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if records are all removed +--- Start: diff start step.3 --- +< test.dyndns MX 10 host-1.test.dyndns 3600 NULL 1 +< test.dyndns MX 20 host-2.test.dyndns 3600 NULL 1 +< test.dyndns NS 0 ns1.test.dyndns 3600 NULL 1 +< test.dyndns NS 0 ns2.test.dyndns 3600 NULL 1 +> test.dyndns MX 10 host-1.test.dyndns 3600 '' 1 +> test.dyndns MX 20 host-2.test.dyndns 3600 '' 1 +> test.dyndns NS 0 ns1.test.dyndns 3600 '' 1 +> test.dyndns NS 0 ns2.test.dyndns 3600 '' 1 +--- End: diff start step.3 --- + diff --git a/regression-tests/1dyndns-update-delete-parent-delegate/expected_result.nsec3 b/regression-tests/1dyndns-update-delete-parent-delegate/expected_result.nsec3 new file mode 100644 index 0000000000..79abda993b --- /dev/null +++ b/regression-tests/1dyndns-update-delete-parent-delegate/expected_result.nsec3 @@ -0,0 +1,34 @@ +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if delegates are added. +--- Start: diff start step.1 --- +> a.b.c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 NULL 0 +> c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 NULL 0 +--- End: diff start step.1 --- + +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if c.delegate.test.dyndns. was removed correctly. +--- Start: diff start step.2 --- +> a.b.c.delegate.test.dyndns NS 0 ns1.test.dyndns 3600 NULL 0 +--- End: diff start step.2 --- + +Answer: +;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] +;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 +;; ZONE SECTION: +;test.dyndns. IN SOA + +Check if records are all removed +--- Start: diff start step.3 --- +no differnce +--- End: diff start step.3 --- + diff --git a/regression-tests/1dyndns-update-delete-parent-delegate/skip.nodyndns b/regression-tests/1dyndns-update-delete-parent-delegate/skip.nodyndns new file mode 100644 index 0000000000..81c071b810 --- /dev/null +++ b/regression-tests/1dyndns-update-delete-parent-delegate/skip.nodyndns @@ -0,0 +1 @@ +Skip this test if the backend does not support dyndns/rfc2136