]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Extend the doth system test
authorArtem Boldariev <artem@boldariev.com>
Wed, 6 Apr 2022 13:10:05 +0000 (16:10 +0300)
committerArtem Boldariev <artem@boldariev.com>
Wed, 6 Apr 2022 15:45:57 +0000 (18:45 +0300)
This commit adds simple checks that the TLS contexts in question are
indeed being updated on DoT and DoH listeners.

bin/tests/system/doth/tests.sh

index a92baeff0a68786e20639367506848f9d7e77ab6..45170aba4a847ecc2f6b4ba556e5e8f77ef6849f 100644 (file)
@@ -597,10 +597,17 @@ grep "ANSWER: 2500" dig.out.test$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status + ret))
 
+wait_for_tlsctx_update_ns4 () {
+       grep "updating TLS context on 10.53.0.4#${HTTPSPORT}" ns4/named.run > /dev/null || return 1
+       grep "updating TLS context on 10.53.0.4#${TLSPORT}" ns4/named.run > /dev/null || return 1
+       return 0
+}
+
 n=$((n + 1))
 echo_i "doing rndc reconfig to see that queries keep being served after that ($n)"
 ret=0
 rndc_reconfig ns4 10.53.0.4 60
+retry_quiet 15 wait_for_tlsctx_update_ns4 || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status + ret))