From 74d493b9611c9ac9a9692a8ab888679f965c6f33 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 17 May 2019 15:09:50 +0200 Subject: [PATCH] auth: Check that an ENT is properly removed by an UPDATE --- .../tests/1dyndns-cname-and-other-data/command | 18 ++++++++++++++++++ .../expected_result | 14 ++++++++++++++ 2 files changed, 32 insertions(+) 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] -- 2.47.2