]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Test deprecate dscp configuration
authorMatthijs Mekking <matthijs@isc.org>
Tue, 10 Jan 2023 08:33:17 +0000 (09:33 +0100)
committerEvan Hunt <each@isc.org>
Tue, 10 Jan 2023 19:16:18 +0000 (11:16 -0800)
Add 'dscp' token and 'option' to deprecated.conf. It should trigger warnings
(except when deprecation warnings are being ignored).

bin/tests/system/checkconf/deprecated.conf
bin/tests/system/checkconf/tests.sh

index 44607a042bf963eba4e82d29dac03fcdb95fa7cf..82a555d98b30ca9b84a0846772e27cf72ee3fe99 100644 (file)
  * information regarding copyright ownership.
  */
 
+server 1.2.3.4 {
+       query-source 10.10.10.10 dscp 10;
+};
+
 options {
        dnssec-validation yes;
+       dscp 10;
 };
 
 trusted-keys {
index d625fd5aeb428df1ada96debf765d4f2b99ee8c6..c978efe347e777b45ed72d81c2b5e1362326e88b 100644 (file)
@@ -143,6 +143,8 @@ ret=0
 $CHECKCONF deprecated.conf > checkconf.out$n.1 2>&1
 grep "option 'managed-keys' is deprecated" < checkconf.out$n.1 > /dev/null || ret=1
 grep "option 'trusted-keys' is deprecated" < checkconf.out$n.1 > /dev/null || ret=1
+grep "option 'dscp' is deprecated" < checkconf.out$n.1 > /dev/null || ret=1
+grep "token 'dscp' is deprecated" < checkconf.out$n.1 > /dev/null || ret=1
 if [ $ret -ne 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 # set -i to ignore deprecate warnings