]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix key ID extraction in the "dnssec" system test
authorMichał Kępień <michal@isc.org>
Wed, 20 Mar 2019 21:21:30 +0000 (22:21 +0100)
committerMichał Kępień <michal@isc.org>
Thu, 21 Mar 2019 07:12:52 +0000 (08:12 +0100)
commitde1eba6a0fe5aa477f251fc1042de8b4e14e4f34
tree1dc507af857b9e7e08e77069ed60e8c229841c7a
parent49ed0473d989f46e8675b2997a4ba5a07eea94a7
Fix key ID extraction in the "dnssec" system test

Simply looking for the key ID surrounded by spaces in the tested
dnssec-signzone output file is not a precise enough method of checking
for signatures prepared using a given key ID: it can be tripped up by
cross-algorithm key ID collisions and certain low key IDs (e.g. 60, the
TTL specified in bin/tests/system/dnssec/signer/example.db.in), which
triggers false positives for the "dnssec" system test.  Make key ID
extraction precise by using an awk script which operates on specific
fields.

(cherry picked from commit a40c60e4c1d974a0d9dbad513a1a78fa2a4025b5)
bin/tests/system/dnssec/tests.sh