add -class option to rndc nta
This commit is contained in:
@@ -486,6 +486,22 @@ grep "NTA lifetime cannot exceed one week" rndc.out.4.test$n > /dev/null || ret=
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "testing rndc nta -class option ($n)"
|
||||
ret=0
|
||||
nextpart ns4/named.run > /dev/null
|
||||
$RNDCCMD4 nta -c in nta1.example > rndc.out.1.test$n 2>&1
|
||||
nextpart ns4/named.run | grep "added NTA 'nta1.example'" > /dev/null || ret=1
|
||||
$RNDCCMD4 nta -c any nta1.example > rndc.out.2.test$n 2>&1
|
||||
nextpart ns4/named.run | grep "added NTA 'nta1.example'" > /dev/null || ret=1
|
||||
$RNDCCMD4 nta -c ch nta1.example > rndc.out.3.test$n 2>&1
|
||||
nextpart ns4/named.run | grep "added NTA 'nta1.example'" > /dev/null && ret=1
|
||||
$RNDCCMD4 nta -c fake nta1.example > rndc.out.4.test$n 2>&1
|
||||
nextpart ns4/named.run | grep "added NTA 'nta1.example'" > /dev/null && ret=1
|
||||
grep 'unknown class' rndc.out.4.test$n > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
for i in 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288
|
||||
do
|
||||
n=`expr $n + 1`
|
||||
|
||||
Reference in New Issue
Block a user