use "primary" and "secondary" in statschannel output

zone statistics were still using the old terminology. NOTE: this
change may affect scripts that parse statistics output.
This commit is contained in:
Evan Hunt
2021-08-25 22:33:52 -07:00
parent 679f1c0dad
commit cd1bb82d34
2 changed files with 3 additions and 3 deletions

View File

@@ -152,7 +152,7 @@ ret=0
echo_i "checking that zones return their type ($n)"
if $FEATURETEST --have-libxml2 && [ -x ${CURL} ] ; then
${CURL} http://10.53.0.1:${EXTRAPORT1}/xml/v3/zones > curl.out.${n} 2>/dev/null || ret=1
grep '<zone name="32/1.0.0.127-in-addr.example" rdataclass="IN"><type>master</type>' curl.out.${n} > /dev/null || ret=1
grep '<zone name="32/1.0.0.127-in-addr.example" rdataclass="IN"><type>primary</type>' curl.out.${n} > /dev/null || ret=1
else
echo_i "skipping test as libxml2 and/or curl was not found"
fi