From 59645273815a14c90e42340dfd07b7cd47f3a560 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Fri, 20 Sep 2024 17:02:05 +0100 Subject: [PATCH] Add debug messages --- test/u2-test-get_auth_dns-drill.bats | 3 +++ test/u8-test-get_auth_dns-cname-nslookup.bats | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/u2-test-get_auth_dns-drill.bats b/test/u2-test-get_auth_dns-drill.bats index 3ac8a874..468f6b5a 100644 --- a/test/u2-test-get_auth_dns-drill.bats +++ b/test/u2-test-get_auth_dns-drill.bats @@ -136,6 +136,7 @@ teardown() { CHECK_PUBLIC_DNS_SERVER=false CHECK_ALL_AUTH_DNS=false + echo "# Checking we can find the primary_ns server" run get_auth_dns www.duckdns.org # Assert that we've found the primary_ns server @@ -146,11 +147,13 @@ teardown() { assert_line --regexp 'Using drill.* NS' # Check all Authoritive DNS servers are returned if requested + echo "# Checking all authoritive DNS servers are returned if requested" CHECK_ALL_AUTH_DNS=true run get_auth_dns www.duckdns.org assert_output --regexp 'set primary_ns = ns.*\.awsdns.*\.net' # Check that we also check the public DNS server if requested + echo "# Checking we use the public DNS server if requested" CHECK_PUBLIC_DNS_SERVER=true run get_auth_dns www.duckdns.org assert_output --regexp 'set primary_ns = ns.*\.awsdns.*\.net 1\.0\.0\.1' diff --git a/test/u8-test-get_auth_dns-cname-nslookup.bats b/test/u8-test-get_auth_dns-cname-nslookup.bats index 9a25503e..6751bb9d 100644 --- a/test/u8-test-get_auth_dns-cname-nslookup.bats +++ b/test/u8-test-get_auth_dns-cname-nslookup.bats @@ -22,9 +22,9 @@ setup() { NSLOOKUP_VERSION=$(echo "" | nslookup -version 2>/dev/null | awk -F"[ -]" '{ print $2 }') # Version 9.11.3 on Ubuntu -debug doesn't work inside docker in my test env, version 9.16.1 does if [[ "${NSLOOKUP_VERSION}" != "Invalid" ]] && check_version "${NSLOOKUP_VERSION}" "9.11.4" ; then - DNS_CHECK_OPTIONS="$DNS_CHECK_OPTIONS -debug" + DNS_CHECK_OPTIONS="$DNS_CHECK_OPTIONS -debug" else - skip "This version of nslookup either doesn't support -debug or it doesn't work in local docker" + skip "This version of nslookup either doesn't support -debug or it doesn't work in local docker" fi }