mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
Merge branch 'wpk-statschannel-test-timing' into 'master'
statschannel test fix See merge request isc-projects/bind9!909
This commit is contained in:
6
CHANGES
6
CHANGES
@@ -1,5 +1,9 @@
|
|||||||
|
5063. [test] In statschannel test try a few times before failing when
|
||||||
|
checking if the compressed output is the same as
|
||||||
|
uncompressed. [GL !909]
|
||||||
|
|
||||||
5062. [func] Use non-crypto-secure PRNG to generate nonces for
|
5062. [func] Use non-crypto-secure PRNG to generate nonces for
|
||||||
cookies [GL !887]
|
cookies. [GL !887]
|
||||||
|
|
||||||
5061. [protocol] Add support for EID and NIMLOC. [GL #626]
|
5061. [protocol] Add support for EID and NIMLOC. [GL #626]
|
||||||
|
|
||||||
|
@@ -197,20 +197,28 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
|||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
|
|
||||||
ret=0
|
|
||||||
echo_i "checking consistency between regular and compressed output ($n)"
|
echo_i "checking consistency between regular and compressed output ($n)"
|
||||||
if [ "$HAVEXMLSTATS" ];
|
for i in 1 2 3 4 5; do
|
||||||
then
|
ret=0
|
||||||
URL=http://10.53.0.2:${EXTRAPORT1}/xml/v3/server
|
if [ "$HAVEXMLSTATS" ];
|
||||||
else
|
then
|
||||||
URL=http://10.53.0.2:${EXTRAPORT1}/json/v1/server
|
URL=http://10.53.0.2:${EXTRAPORT1}/xml/v3/server
|
||||||
fi
|
else
|
||||||
$CURL -D regular.headers $URL 2>/dev/null | \
|
URL=http://10.53.0.2:${EXTRAPORT1}/json/v1/server
|
||||||
sed -e "s#<current-time>.*</current-time>##g" > regular.out
|
fi
|
||||||
$CURL -D compressed.headers --compressed $URL 2>/dev/null | \
|
$CURL -D regular.headers $URL 2>/dev/null | \
|
||||||
sed -e "s#<current-time>.*</current-time>##g" > compressed.out
|
sed -e "s#<current-time>.*</current-time>##g" > regular.out
|
||||||
diff regular.out compressed.out >/dev/null || ret=1
|
$CURL -D compressed.headers --compressed $URL 2>/dev/null | \
|
||||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
sed -e "s#<current-time>.*</current-time>##g" > compressed.out
|
||||||
|
diff regular.out compressed.out >/dev/null || ret=1
|
||||||
|
if [ $ret != 0 ]; then
|
||||||
|
echo_i "failed on try $i, probably a timing issue, trying again"
|
||||||
|
sleep 1
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user