bind9/bin/tests
Matthijs Mekking 2fc42b598b Fix a quirky mkeys test failure
The mkeys system test started to fail after introducing support for
zones transitioning to unsigned without going bogus. This is because
there was actually a bug in the code: if you reconfigure a zone and
remove the "auto-dnssec" option, the zone is actually still DNSSEC
maintained. This is because in zoneconf.c there is no call
to 'dns_zone_setkeyopt()' if the configuration option is not used
(cfg_map_get(zoptions, "auto-dnssec", &obj) will return an error).

The mkeys system test implicitly relied on this bug: initially the
root zone is being DNSSEC maintained, then at some point it needs to
reset the root zone in order to prepare for some tests with bad
signatures. Because it needs to inject a bad signature, 'auto-dnssec'
is removed from the configuration.

The test pass but for the wrong reasons:

I:mkeys:reset the root server
I:mkeys:reinitialize trust anchors
I:mkeys:check positive validation (18)

The 'check positive validation' test works because the zone is still
DNSSEC maintained: The DNSSEC records in the signed root zone file on
disk are being ignored.

After fixing the bug/introducing graceful transition to insecure,
the root zone is no longer DNSSEC maintained after the reconfig.

The zone now explicitly needs to be reloaded because otherwise the
'check positive validation' test works against an old version of the
zone (the one with all the revoked keys), and the test will obviously
fail.
2020-12-23 09:02:11 +01:00
..
startperf update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
system Fix a quirky mkeys test failure 2020-12-23 09:02:11 +01:00
testdata/wire move all optional tests from bin/tests to bin/tests/optional 2018-03-09 14:12:47 -08:00
.gitignore Drop bin/tests/headerdep_test.sh.in 2020-11-27 13:11:41 +01:00
fromhex.pl update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
Makefile.am Fix "make dist" 2020-06-05 13:19:49 +02:00
named.conf update documentation 2019-06-05 07:49:57 -07:00
prepare-softhsm2.sh update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
wire_test.c The dns_message_create() cannot fail, change the return to void 2020-09-29 08:22:08 +02:00