Allow non-destructive control channel access using a "read-only" clause (#40498)

This commit is contained in:
Mukund Sivaraman
2015-11-11 13:29:38 +05:30
parent 9b17fd447c
commit 58f7af60e7
12 changed files with 140 additions and 13 deletions

View File

@@ -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