From: Aram Sargsyan Date: Thu, 25 Dec 2025 12:27:37 +0000 (+0000) Subject: Test that catalog zones' entry names are case-insensitive X-Git-Tag: v9.21.18~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e9d97b4f715a64a62c46cfc4a7b7c24e3bca69c;p=thirdparty%2Fbind9.git Test that catalog zones' entry names are case-insensitive --- diff --git a/bin/tests/system/catz/tests.sh b/bin/tests/system/catz/tests.sh index 5fdfa93ab9d..a5940238703 100644 --- a/bin/tests/system/catz/tests.sh +++ b/bin/tests/system/catz/tests.sh @@ -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 <>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