]> 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:44 +0000 (14:05 +0200)
commit6045adbd1ada42637f76d4e4466f7710ff99595a
treeb254f9ebd68dd1ffba88ba8424728935d750c42b
parent23c2b1406452fc2b35188f33335387a55c08b026
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.

(cherry picked from commit 7d6eaad1bdadf5595ade06430faadb8361bb731a)
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