From: Aram Sargsyan Date: Thu, 25 Dec 2025 11:39:54 +0000 (+0000) Subject: Test that catalog zone names are case-insensitive X-Git-Tag: v9.21.18~31^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d0e6454ac4cd238a31198a3ef81824e818d0829;p=thirdparty%2Fbind9.git Test that catalog zone names are case-insensitive Change one of the existing catalog zone names to test that catalog zones are now case-insensitive. --- diff --git a/bin/tests/system/catz/ns2/named.conf.j2 b/bin/tests/system/catz/ns2/named.conf.j2 index a61a42cc03a..b79c846148e 100644 --- a/bin/tests/system/catz/ns2/named.conf.j2 +++ b/bin/tests/system/catz/ns2/named.conf.j2 @@ -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; }; diff --git a/bin/tests/system/catz/ns2/named7.conf.j2 b/bin/tests/system/catz/ns2/named7.conf.j2 index 82621cac1c1..22f5a0c73f6 100644 --- a/bin/tests/system/catz/ns2/named7.conf.j2 +++ b/bin/tests/system/catz/ns2/named7.conf.j2 @@ -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; }; diff --git a/bin/tests/system/catz/tests.sh b/bin/tests/system/catz/tests.sh index 120be787302..5fdfa93ab9d 100644 --- a/bin/tests/system/catz/tests.sh +++ b/bin/tests/system/catz/tests.sh @@ -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))