]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update autosign test to use signatures-jitter
authorMatthijs Mekking <matthijs@isc.org>
Thu, 1 Feb 2024 15:33:21 +0000 (16:33 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 18 Apr 2024 07:50:10 +0000 (09:50 +0200)
Now that we have an option to configure jitter, use it in system tests
that test jitter.

bin/tests/system/autosign/ns3/named.conf.in
bin/tests/system/autosign/tests.sh

index 9bc5d655e1650c5ae3707ee00dca7a9eef021e10..2316de29326fdc419d649aad097dd2451c0e7114 100644 (file)
@@ -87,6 +87,7 @@ dnssec-policy "jitter" {
        signatures-validity P10D;
        signatures-validity-dnskey P10D;
        signatures-refresh P2D;
+       signatures-jitter P8D;
 };
 
 # Jitter, NSEC3
index 1839738966b3e6e221da0f6443d39db58422828e..3b7613226dd3daf3dd14c3b386b15bb23c3067d3 100755 (executable)
@@ -91,10 +91,10 @@ checkjitter() {
 
   _count=0
   # Check if we have at least 4 days
-  # This number has been tuned for `signatures-validity 10d; signatures-refresh 2d`, as
-  # 1 signature expiration dates should be spread out across at most 8 (10-2) days
-  # 2. we remove first and last day to remove frequency outlier, we are left with 6 (8-2) days
-  # 3. we subtract two more days to allow test pass on day boundaries, etc. leaving us with 4 (6-2)
+  # This number has been tuned for `signatures-validity 10d; signatures-jitter 8d`, as
+  # 1. signature expiration dates should be spread out across at most 8 days
+  # 2. we remove first and last day to remove frequency outlier, we are left with 6 days
+  # 3. we subtract two more days to allow test pass on day boundaries, etc. leaving us with 4 days
   for _num in $_expiretimes; do
     _count=$((_count + 1))
   done