]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix autosign system test issues.
authorMark Andrews <marka@isc.org>
Fri, 13 Dec 2019 03:45:24 +0000 (14:45 +1100)
committerMark Andrews <marka@isc.org>
Fri, 13 Dec 2019 08:31:56 +0000 (08:31 +0000)
* report when NSEC3PARAM is not yet present
* allow more time for NSEC3PARAM to become present
* adjust frequency failure message

bin/tests/system/autosign/tests.sh

index 014126e320ff8e40ef57b0c42306acca7a9773fb..b6440c13939f95c9d795b3fedbdd56ace04346c3 100755 (executable)
@@ -117,8 +117,12 @@ checkjitter () {
        echo_i "checking whether all frequencies fall into <$_low;$_high> range"
        for _num in $_expiretimes
        do
-               if [ $_num -gt $_high ] || [ $_num -lt $_low ]; then
-                       echo_i "error: too many RRSIG records ($_num) with the same expiration time"
+               if [ $_num -gt $_high ]; then
+                       echo_i "error: too many RRSIG records ($_num) in expiration bucket"
+                       _ret=1
+               fi
+               if [ $_num -lt $_low ]; then
+                       echo_i "error: too few RRSIG records ($_num) in expiration bucket"
                        _ret=1
                fi
        done
@@ -1051,7 +1055,10 @@ check_if_nsec3param_exists() {
        $DIG $DIGOPTS NSEC3PARAM jitter.nsec3.example @10.53.0.3 > dig.out.ns3.1.test$n || return 1
        grep -q "^jitter\.nsec3\.example\..*NSEC3PARAM" dig.out.ns3.1.test$n || return 1
 }
-retry_quiet 20 check_if_nsec3param_exists || ret=1
+retry_quiet 40 check_if_nsec3param_exists || {
+       echo_i "error: NSEC3PARAM not present yet"
+       ret=1
+}
 $DIG $DIGOPTS AXFR jitter.nsec3.example @10.53.0.3 > dig.out.ns3.2.test$n || ret=1
 # Check jitter distribution.
 checkjitter dig.out.ns3.2.test$n || ret=1