mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Check conf dnssec-policy inline-signing secondary
Add a variant of checking configuration where inline-signing is enabled on the secondary, requiring the 'file' entry. This time, inline-signing is implicitly enabled via dnssec-policy.
This commit is contained in:
parent
c62cff5aef
commit
43bbfbeb3c
2 changed files with 10 additions and 0 deletions
7
bin/tests/system/checkconf/inline-inherit.conf
Normal file
7
bin/tests/system/checkconf/inline-inherit.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
remote-servers "stealthPrimaries" {127.0.0.1;};
|
||||
zone "example.net" {
|
||||
type secondary;
|
||||
dnssec-policy default;
|
||||
primaries { stealthPrimaries; };
|
||||
};
|
||||
|
||||
|
|
@ -277,6 +277,9 @@ l=$(grep "missing 'file' entry" <checkconf.out$n.2 | wc -l)
|
|||
$CHECKCONF inline-bad.conf >checkconf.out$n.3 2>&1 && ret=1
|
||||
l=$(grep "missing 'file' entry" <checkconf.out$n.3 | wc -l)
|
||||
[ $l -eq 1 ] || ret=1
|
||||
$CHECKCONF inline-inherit.conf >checkconf.out$n.3 2>&1 && ret=1
|
||||
l=$(grep "missing 'file' entry" <checkconf.out$n.3 | wc -l)
|
||||
[ $l -eq 1 ] || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue