From: Matthijs Mekking Date: Wed, 1 Jul 2020 11:19:24 +0000 (+0200) Subject: Fix kasp test set_keytime X-Git-Tag: v9.17.3~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24e07ae98e02858bf677fdbe3c4fd5112b502cae;p=thirdparty%2Fbind9.git Fix kasp test set_keytime While the creation and publication times of the various keys in this policy are nearly at the same time there is a chance that one key is created a second later than the other. The `set_keytimes_algorithm_policy` mistakenly set the keytimes for KEY3 based of the "published" time from KEY2. --- diff --git a/bin/tests/system/kasp/tests.sh b/bin/tests/system/kasp/tests.sh index 5528d5b8e6f..5f92cf7f5ed 100644 --- a/bin/tests/system/kasp/tests.sh +++ b/bin/tests/system/kasp/tests.sh @@ -1370,8 +1370,8 @@ set_keytimes_algorithm_policy() { # Second ZSK (KEY3). created=$(key_get KEY3 CREATED) - set_keytime "KEY3" "PUBLISHED" "${published}" - set_keytime "KEY3" "ACTIVE" "${published}" + set_keytime "KEY3" "PUBLISHED" "${created}" + set_keytime "KEY3" "ACTIVE" "${created}" # Key was pregenerated. if [ "$1" == "pregenerated" ]; then keyfile=$(key_get KEY3 BASEFILE)