]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add and use keyfile_to_key_id() helper function
authorMichał Kępień <michal@isc.org>
Fri, 28 Jun 2019 11:11:26 +0000 (13:11 +0200)
committerMichał Kępień <michal@isc.org>
Fri, 28 Jun 2019 12:05:04 +0000 (14:05 +0200)
commit7d6eaad1bdadf5595ade06430faadb8361bb731a
tree96e000848f0e6c6b8b8705f2da71d3224f6bfb94
parentf895e4aaf25959078d196b95d71a69d57a7ad190
Add and use keyfile_to_key_id() helper function

When trying to extract the key ID from a key file name, some test code
incorrectly attempts to strip all leading zeros.  This breaks tests when
keys with ID 0 are generated.  Add a new helper shell function,
keyfile_to_key_id(), which properly handles keys with ID 0 and use it in
test code whenever a key ID needs to be extracted from a key file name.
13 files changed:
bin/tests/system/autosign/tests.sh
bin/tests/system/cds/setup.sh
bin/tests/system/conf.sh.common
bin/tests/system/digdelv/ns2/sign.sh
bin/tests/system/dnssec/ns1/sign.sh
bin/tests/system/dnssec/ns2/sign.sh
bin/tests/system/dnssec/tests.sh
bin/tests/system/metadata/tests.sh
bin/tests/system/mkeys/ns1/sign.sh
bin/tests/system/mkeys/tests.sh
bin/tests/system/smartsign/tests.sh
bin/tests/system/statschannel/ns2/sign.sh
bin/tests/system/tkey/ns1/setup.sh