incidental fix: dnsrps test was failing

the test for logging of invalid prefixes doesn't work when running
with dnsrps; disable it in that case.
This commit is contained in:
Evan Hunt
2020-03-12 00:28:26 -07:00
committed by Diego Fronza
parent fe10111521
commit 2822b01636

View File

@@ -474,15 +474,17 @@ for mode in native dnsrps; do
status=1
}
# Check for invalid prefix length error
t=`expr $t + 1`
echo_i "testing for invalid prefix length error (${t})"
add_test_marker 10.53.0.2
run_server invalidprefixlength
grep "invalid rpz IP address \"1000.4.0.53.10.rpz-client-ip.invalidprefixlength\"; invalid prefix length of 1000$" ns2/named.run > /dev/null || {
echo_ic "failed: expected that invalid prefix length error would be logged"
status=1
}
if [ "$mode" = "native" ]; then
# Check for invalid prefix length error
t=`expr $t + 1`
echo_i "testing for invalid prefix length error (${t})"
add_test_marker 10.53.0.2
run_server invalidprefixlength
grep "invalid rpz IP address \"1000.4.0.53.10.rpz-client-ip.invalidprefixlength\"; invalid prefix length of 1000$" ns2/named.run > /dev/null || {
echo_ic "failed: expected that invalid prefix length error would be logged"
status=1
}
fi
t=`expr $t + 1`
echo_i "checking 'nsip-wait-recurse no' is faster than 'nsip-wait-recurse yes' ($t)"