2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Merge branch 'each-move-rrl-broken-config-test-case-to-checkconf' into 'main'

Move RRL broken-config check to checkconf

See merge request isc-projects/bind9!8795
This commit is contained in:
Evan Hunt
2024-03-01 23:34:05 +00:00
4 changed files with 0 additions and 35 deletions

View File

@@ -11,20 +11,7 @@
* information regarding copyright ownership.
*/
controls { /* empty */ };
options {
query-source address 10.53.0.5;
notify-source 10.53.0.5;
transfer-source 10.53.0.5;
port @PORT@;
pid-file "named.pid";
statistics-file "named.stats";
listen-on { 10.53.0.5; };
listen-on-v6 { none; };
notify no;
dnssec-validation no;
rate-limit {
responses-per-second 2;
all-per-second 50;
@@ -36,12 +23,3 @@ options {
max-table-size 0;
};
};
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;
};
controls {
inet 10.53.0.5 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
};

View File

@@ -14,8 +14,6 @@
# Clean up after rrl tests.
rm -f */named.memstats */named.run */named.stats */log-* */session.key
rm -f broken.conf
rm -f broken.out
rm -f dig.out* *mdig.out*
rm -f ns*/managed-keys.bind*
rm -f ns*/named.conf

View File

@@ -15,7 +15,6 @@
$SHELL clean.sh
copy_setports broken.conf.in broken.conf
copy_setports ns1/named.conf.in ns1/named.conf
copy_setports ns2/named.conf.in ns2/named.conf
copy_setports ns3/named.conf.in ns3/named.conf

View File

@@ -274,15 +274,5 @@ fi
DIGOPTS="+bufsize=4096 +ignore -p ${PORT}"
$DIG $DIGOPTS @$ns4 TXT big.tld4 >/dev/null 2>&1
# check named doesn't start with a broken config
$NAMED -D rrl-ns5 -gc broken.conf >broken.out 2>&1 &
sleep 2
grep "min-table-size 1" broken.out >/dev/null || setret "min-table-size 0 was not changed to 1"
if [ -f named.pid ]; then
kill $(cat named.pid)
setret "named should not have started, but did"
fi
echo_i "exit status: $ret"
[ $ret -eq 0 ] || exit 1