]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Test that catalog zones' entry names are case-insensitive
authorAram Sargsyan <aram@isc.org>
Thu, 25 Dec 2025 12:27:37 +0000 (12:27 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 12 Jan 2026 12:58:57 +0000 (12:58 +0000)
bin/tests/system/catz/tests.sh

index 5fdfa93ab9d6fb7256a9d76a4a19098522f796a2..a5940238703aa6a5d204e63cd434f153f98892f7 100644 (file)
@@ -488,6 +488,29 @@ status=$((status + ret))
 
 nextpart ns2/named.run >/dev/null
 
+# Test that different case isn't interpreted as a new label.
+n=$((n + 1))
+echo_i "changing the case of the label of domain dom4.example. in catalog2 zone ($n)"
+ret=0
+$NSUPDATE -d <<END >>nsupdate.out.test$n 2>&1 || ret=1
+    server 10.53.0.3 ${PORT}
+    update delete dom4-renamed-label.zones.catalog2.example. 3600 IN PTR dom4.example.
+    update add DOM4-RENAMED-LABEL.zones.catalog2.example. 3600 IN PTR dom4.example.
+    send
+END
+if [ $ret -ne 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
+
+n=$((n + 1))
+echo_i "waiting for secondary to sync up, and checking that the zone has not been reset ($n)"
+ret=0
+wait_for_message ns2/named.run "catz: catalog2.example: reload done: success" || ret=1
+_wait_for_message ns2/named.run "catz: zone 'dom4.example' unique label has changed, reset state" && ret=1
+if [ $ret -ne 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
+
+nextpart ns2/named.run >/dev/null
+
 n=$((n + 1))
 echo_i "adding domain dom2.example. to catalog2 zone to test change of ownership ($n)"
 ret=0