From: Remi Gacogne Date: Fri, 17 May 2019 13:09:50 +0000 (+0200) Subject: auth: Check that an ENT is properly removed by an UPDATE X-Git-Tag: dnsdist-1.4.0-beta1~30^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74d493b9611c9ac9a9692a8ab888679f965c6f33;p=thirdparty%2Fpdns.git auth: Check that an ENT is properly removed by an UPDATE --- diff --git a/regression-tests/tests/1dyndns-cname-and-other-data/command b/regression-tests/tests/1dyndns-cname-and-other-data/command index 32ef5676e0..39f77560b9 100755 --- a/regression-tests/tests/1dyndns-cname-and-other-data/command +++ b/regression-tests/tests/1dyndns-cname-and-other-data/command @@ -19,6 +19,15 @@ echo '* check that indeed nothing was added' cleandig $RECORDNAME A hidesoadetails cleandig $RECORDNAME CNAME hidesoadetails +echo '* Add a record that will result in an ENT being inserted at the upcoming CNAME' +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 + * Add a CNAME Answer: ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id] @@ -23,6 +30,13 @@ Answer: ;; ZONE SECTION: ;test.dyndns. IN SOA +* Delete the now useless record inserted to get an ENT there +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 + * Attempt to add an A record (should be REFUSED) Answer: ;; ->>HEADER<<- opcode: UPDATE, status: REFUSED, id: [id]