]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disable keyfromlabel collision avoidance in tests
authorNicki Křížek <nicki@isc.org>
Wed, 8 Oct 2025 09:35:24 +0000 (11:35 +0200)
committerNicki Křížek <nicki@isc.org>
Fri, 10 Oct 2025 08:39:04 +0000 (10:39 +0200)
With the collision avoidance on, some of the tests would occasionally
fail. None of the tests using keyfromlabel are revoking the keys so it
should be safe to disable it.

bin/tests/system/enginepkcs11/setup.sh
bin/tests/system/keyfromlabel/tests_keyfromlabel.py

index dac6e4c7c57da6db4f9343cf6d842960993709ac..dadace2f20885a16a41d616b80490b1030e5d2b2 100644 (file)
@@ -40,7 +40,7 @@ keyfromlabel() {
   dir="$4"
   shift 4
 
-  $KEYFRLAB -K $dir -a $alg -l "pkcs11:token=softhsm2-enginepkcs11;object=${id}-${zone};pin-source=$PWD/ns1/pin" "$@" $zone >>keyfromlabel.out.$zone.$id 2>keyfromlabel.err.$zone.$id || return 1
+  $KEYFRLAB -K $dir -a $alg -y -l "pkcs11:token=softhsm2-enginepkcs11;object=${id}-${zone};pin-source=$PWD/ns1/pin" "$@" $zone >>keyfromlabel.out.$zone.$id 2>keyfromlabel.err.$zone.$id || return 1
   cat keyfromlabel.out.$zone.$id
 }
 
index 67b28931526b6ef69760653b55b7216d17abf277..8fddbd4dd59ad526203cd38a4597c373f6c2bb92 100644 (file)
@@ -138,6 +138,7 @@ def test_keyfromlabel(alg_name, alg_type, alg_bits):
             os.environ["KEYFRLAB"],
             "-a",
             alg_name,
+            "-y",
             "-l",
             f"pkcs11:token=softhsm2-keyfromlabel;object={key_id}-{zone};pin-source=pin",
             *key_flag,