]> git.ipfire.org Git - thirdparty/bind9.git/commit
Update autosign test
authorMatthijs Mekking <matthijs@isc.org>
Tue, 7 Dec 2021 13:11:06 +0000 (14:11 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 6 Jan 2022 08:35:42 +0000 (09:35 +0100)
commit17ae663084bdab626314da73b30aa53fc76ebe16
tree893e697002fec37b5434605b443b5611597fc929
parentbdb91e3825c194a0750ecf79f8acfd81de8c001d
Update autosign test

Update the autosign system test with new expected behavior.

The 'nozsk.example' zone should have its expired zone signatures
deleted and replaced with signatures generated with the KSK.

The 'inaczsk.example' zone should have its expired zone signatures
deleted and replaced with signatures generated with the KSK.

In both scenarios, signatures are deleted, not retained, so the
"retaining signatures" warning should not be logged.

Furthermore, thsi commit fixex a test bug where the 'awk' command
always returned 0.

Finally, this commit adds a test case for an offline KSK, for the zone
'noksk.example'. In this case the expired signatures should be retained
(despite the zone being bogus, but resigning the DNSKEY RRset with the
ZSK won't help here).

(cherry picked from commit fbd559ad0d389948c594a35b72d7fb6d16794702)
bin/tests/system/autosign/clean.sh
bin/tests/system/autosign/ns3/keygen.sh
bin/tests/system/autosign/ns3/named.conf.in
bin/tests/system/autosign/ns3/noksk.example.db.in [new file with mode: 0644]
bin/tests/system/autosign/tests.sh