]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Test that catalog zone names are case-insensitive
authorAram Sargsyan <aram@isc.org>
Thu, 25 Dec 2025 11:39:54 +0000 (11:39 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 12 Jan 2026 12:58:57 +0000 (12:58 +0000)
Change one of the existing catalog zone names to test that
catalog zones are now case-insensitive.

bin/tests/system/catz/ns2/named.conf.j2
bin/tests/system/catz/ns2/named7.conf.j2
bin/tests/system/catz/tests.sh

index a61a42cc03a0573cccddf351d4dc141a17682f2a..b79c846148e85af8492eb9e236dbe545765c024f 100644 (file)
@@ -142,7 +142,8 @@ view "default" {
                primaries { 10.53.0.1; };
        };
 
-       zone "catalog2.example" {
+       /* Also test using a different case */
+       zone "Catalog2.Example" {
                type secondary;
                file "catalog2.example.db";
                primaries { 10.53.0.3; };
index 82621cac1c198543a1a8dc1269249b4e8b31f7c4..22f5a0c73f6c1bacf4e5eb30b504abe4204caf86 100644 (file)
@@ -67,7 +67,8 @@ view "default" {
                primaries { 10.53.0.1; };
        };
 
-       zone "catalog2.example" {
+       /* Also test using a different case */
+       zone "Catalog2.Example" {
                type secondary;
                file "catalog2.example.db";
                primaries { 10.53.0.3; };
index 120be78730203f8a36780a62de0aa7325a5a5d2b..5fdfa93ab9d6fb7256a9d76a4a19098522f796a2 100644 (file)
@@ -372,7 +372,7 @@ status=$((status + ret))
 n=$((n + 1))
 echo_i "waiting for secondary to sync up ($n)"
 ret=0
-wait_for_message ns2/named.run "catz: updating catalog zone 'catalog2.example' with serial 2670950425" \
+wait_for_message ns2/named.run "catz: updating catalog zone 'Catalog2.Example' with serial 2670950425" \
   && wait_for_message ns2/named.run "catz: adding zone 'dom2.example' from catalog 'catalog1.example'" \
   && wait_for_message ns2/named.run "catz: adding zone 'dom3.example' from catalog 'catalog1.example'" \
   && wait_for_message ns2/named.run "catz: adding zone 'dom4.example' from catalog 'catalog2.example'" \
@@ -445,7 +445,7 @@ n=$((n + 1))
 echo_i "waiting for secondary to sync up, and checking that the reused label has been caught ($n)"
 ret=0
 wait_for_message ns2/named.run "de26b88d855397a03f77ff1162fd055d8b419584.zones.catalog2.example IN PTR (failure)" \
-  && wait_for_message ns2/named.run "catz: new catalog zone 'catalog2.example' is broken and will not be processed" || ret=1
+  && wait_for_message ns2/named.run "catz: new catalog zone 'Catalog2.Example' is broken and will not be processed" || ret=1
 if [ $ret -ne 0 ]; then echo_i "failed"; fi
 status=$((status + ret))