]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
incidental fix: dnsrps test was failing
authorEvan Hunt <each@isc.org>
Thu, 12 Mar 2020 07:28:26 +0000 (00:28 -0700)
committerDiego Fronza <diego@isc.org>
Mon, 16 Mar 2020 18:18:46 +0000 (15:18 -0300)
the test for logging of invalid prefixes doesn't work when running
with dnsrps; disable it in that case.

bin/tests/system/rpzrecurse/tests.sh

index ca63987d0f492857d9c884625dc82ba445a90074..7b1f206389fbcded940162e8521f8ec3c2fe390b 100644 (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)"