Allow non-destructive control channel access using a "read-only" clause (#40498)
This commit is contained in:
@@ -433,4 +433,12 @@ sleep 1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:test read-only control channel access"
|
||||
ret=0
|
||||
$RNDC -s 10.53.0.5 -p 9953 status > /dev/null 2>&1 || ret=1
|
||||
$RNDC -s 10.53.0.5 -p 9953 nta -dump > /dev/null 2>&1 || ret=1
|
||||
$RNDC -s 10.53.0.5 -p 9953 reconfig > /dev/null 2>&1 && ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
exit $status
|
||||
|
||||
Reference in New Issue
Block a user