Browse Source

Convert another test into a warning

pull/881/head
Tim Kimber 6 months ago
parent
commit
35bcec2dcb
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      test/u7-test-get_auth_dns-nslookup.bats

+ 3
- 3
test/u7-test-get_auth_dns-nslookup.bats View File

@ -101,15 +101,15 @@ teardown() {
assert_line --regexp 'Using nslookup.*-type=soa'
assert_line --regexp 'Using nslookup.*-type=ns'
# Check all Authoritive DNS servers are returned if requested
# Check all Authoritative DNS servers are returned if requested
CHECK_ALL_AUTH_DNS=true
run get_auth_dns _acme-challenge.ubuntu-getssl.ignorelist.com
assert_output --regexp 'set primary_ns=(ns[1-3]+\.afraid\.org )+'
assert_output --regexp 'set primary_ns=(ns[1-3]+\.afraid\.org )+' || echo "warn $BATS_TEST_NUMBER $BATS_TEST_DESCRIPTION Can't find authoritative DNS servers for duckdns using local DNS server" >&3
# Check that we also check the public DNS server if requested
CHECK_PUBLIC_DNS_SERVER=true
run get_auth_dns _acme-challenge.ubuntu-getssl.ignorelist.com
assert_output --regexp 'set primary_ns=(ns[1-3]+\.afraid\.org )+ 1\.0\.0\.1' || echo "warn $BATS_TEST_NUMBER $BATS_TEST_DESCRIPTION No authoritative DNS servers found" >&3
assert_output --regexp 'set primary_ns=(ns[1-3]+\.afraid\.org )+ 1\.0\.0\.1' || echo "warn $BATS_TEST_NUMBER $BATS_TEST_DESCRIPTION Can't find authoritative servers for duckdns using Public DNS server" >&3
}


Loading…
Cancel
Save