bind9/bin/tests
Matthijs Mekking d4b2b7072d Update legacy-keys kasp test
The 'legacy-keys.kasp' test checks that a zone with key files but not
yet state files is signed correctly. This test is expanded to cover
the case where old key files still exist in the key directory. This
covers bug #2406 where keys with the "Delete" timing metadata are
picked up by the keymgr as active keys.

Fix the 'legacy-keys.kasp' test, by creating the right key files
(for zone 'legacy-keys.kasp', not 'legacy,kasp').

Use a unique policy for this zone, using shorter lifetimes.

Create two more keys for the zone, and use 'dnssec-settime' to set
the timing metadata in the past, long enough ago so that the keys
should not be considered by the keymgr.

Update the 'key_unused()' test function, and consider keys with
their "Delete" timing metadata in the past as unused.

Extend the test to ensure that the keys to be used are not the old
predecessor keys (with their "Delete" timing metadata in the past).

Update the test so that the checks performed are consistent with the
newly configured policy.
2021-02-03 08:35:56 +01:00
..
startperf update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
system Update legacy-keys kasp test 2021-02-03 08:35:56 +01:00
testdata/wire move all optional tests from bin/tests to bin/tests/optional 2018-03-09 14:12:47 -08:00
.gitignore Refactor TLSDNS module to work with libuv/ssl directly 2021-01-25 09:19:22 +01:00
fromhex.pl update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
Makefile.am Refactor TLSDNS module to work with libuv/ssl directly 2021-01-25 09:19:22 +01:00
named.conf Remove a lot of obsoleted options 2021-01-19 10:12:40 +01:00
prepare-softhsm2.sh update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
test_client.c Fix addrinfo leak in test_client.c 2021-01-29 13:26:28 +01:00
test_server.c Refactor TLSDNS module to work with libuv/ssl directly 2021-01-25 09:19:22 +01:00
wire_test.c The dns_message_create() cannot fail, change the return to void 2020-09-29 08:22:08 +02:00