Commit f16738ba authored by Mark Andrews's avatar Mark Andrews

Merge branch '1602-rpz-system-test-failed-because-protoype-responses-timed-out' into 'master'

Resolve "rpz system test failed because protoype responses timed out."

Closes #1602

See merge request !3040
parents de16ce05 c38752b0
Pipeline #33731 failed with stages
in 43 minutes and 35 seconds
......@@ -433,6 +433,24 @@ EOF
sleep 2
}
#
# generate prototype NXDOMAIN response to compare against.
#
make_proto_nxdomain() {
digcmd nonexistent @$ns2 >proto.nxdomain || return 1
grep "status: NXDOMAIN" proto.nxdomain >/dev/null || return 1
return 0
}
#
# generate prototype NODATA response to compare against.
#
make_proto_nodata() {
digcmd txt-only.tld2 @$ns2 >proto.nodata || return 1
grep "status: NOERROR" proto.nodata >/dev/null || return 1
return 0
}
for mode in native dnsrps; do
status=0
case ${mode} in
......@@ -472,8 +490,8 @@ for mode in native dnsrps; do
esac
# make prototype files to check against rewritten results
digcmd nonexistent @$ns2 >proto.nxdomain
digcmd txt-only.tld2 @$ns2 >proto.nodata
retry_quiet 10 make_proto_nxdomain
retry_quiet 10 make_proto_nodata
start_group "QNAME rewrites" test1
nochange . # 1 do not crash or rewrite root
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment