From 8bec4a6bf60a05418679caf2e2fb7f9cbe8d5ae9 Mon Sep 17 00:00:00 2001 From: Artem Boldariev Date: Wed, 6 Apr 2022 16:10:05 +0300 Subject: [PATCH] Extend the doth system test 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/tests/system/doth/tests.sh b/bin/tests/system/doth/tests.sh index a92baeff0a..45170aba4a 100644 --- a/bin/tests/system/doth/tests.sh +++ b/bin/tests/system/doth/tests.sh @@ -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))