mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-26 19:34:04 -04:00
Test that catalog zones' entry names are case-insensitive
(cherry picked from commit 4e9d97b4f7)
This commit is contained in:
parent
439e4ddf2f
commit
e2bfce435f
1 changed files with 23 additions and 0 deletions
|
|
@ -497,6 +497,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue