|
|
|
@@ -100,7 +100,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: on (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers enabled (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -207,7 +207,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: on (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers enabled (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -274,7 +274,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: off (rndc) (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers disabled (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -328,7 +328,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: on (rndc) (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers enabled (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -394,7 +394,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: on (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers enabled (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -453,7 +453,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: off (rndc) (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers disabled (stale-answer-ttl=4 max-stale-ttl=3600 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -481,7 +481,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: off (rndc) (stale-answer-ttl=3 max-stale-ttl=20 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers disabled (stale-answer-ttl=3 max-stale-ttl=20 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -500,7 +500,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: on (rndc) (stale-answer-ttl=3 max-stale-ttl=20 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers enabled (stale-answer-ttl=3 max-stale-ttl=20 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -733,7 +733,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: on (rndc) (stale-answer-ttl=3 max-stale-ttl=20 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers enabled (stale-answer-ttl=3 max-stale-ttl=20 stale-refresh-time=30)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -827,7 +827,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.1 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: on (rndc) (stale-answer-ttl=3 max-stale-ttl=20 stale-refresh-time=0)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers enabled (stale-answer-ttl=3 max-stale-ttl=20 stale-refresh-time=0)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -996,7 +996,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.3 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep "_default: off (stale-answer-ttl=$stale_answer_ttl max-stale-ttl=$max_stale_ttl stale-refresh-time=30)" rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep "_default: stale cache enabled; stale answers disabled (stale-answer-ttl=$stale_answer_ttl max-stale-ttl=$max_stale_ttl stale-refresh-time=30)" rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -1073,7 +1073,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.3 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep "_default: on (rndc) (stale-answer-ttl=$stale_answer_ttl max-stale-ttl=$max_stale_ttl stale-refresh-time=30)" rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep "_default: stale cache enabled; stale answers enabled (stale-answer-ttl=$stale_answer_ttl max-stale-ttl=$max_stale_ttl stale-refresh-time=30)" rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -1237,7 +1237,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.4 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep "_default: off (stale-answer-ttl=$stale_answer_ttl max-stale-ttl=$max_stale_ttl stale-refresh-time=30)" rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep "_default: stale cache enabled; stale answers disabled (stale-answer-ttl=$stale_answer_ttl max-stale-ttl=$max_stale_ttl stale-refresh-time=30)" rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -1443,7 +1443,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.5 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep "_default: off (not-cached)" rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep "_default: stale cache disabled; stale answers unavailable" rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -1604,7 +1604,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.3 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: on (stale-answer-ttl=3 max-stale-ttl=3600 stale-refresh-time=0)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers enabled (stale-answer-ttl=3 max-stale-ttl=3600 stale-refresh-time=0)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
@@ -2107,7 +2107,7 @@ n=$((n+1))
|
|
|
|
|
echo_i "check 'rndc serve-stale status' ($n)"
|
|
|
|
|
ret=0
|
|
|
|
|
$RNDCCMD 10.53.0.3 serve-stale status > rndc.out.test$n 2>&1 || ret=1
|
|
|
|
|
grep '_default: on (rndc) (stale-answer-ttl=3 max-stale-ttl=3600 stale-refresh-time=4)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
grep '_default: stale cache enabled; stale answers enabled (stale-answer-ttl=3 max-stale-ttl=3600 stale-refresh-time=4)' rndc.out.test$n > /dev/null || ret=1
|
|
|
|
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
|
|
|
|
status=$((status+ret))
|
|
|
|
|
|
|
|
|
|