|
|
|
@ -65,17 +65,17 @@ teardown() { |
|
|
|
CHECK_PUBLIC_DNS_SERVER=false |
|
|
|
CHECK_ALL_AUTH_DNS=false |
|
|
|
|
|
|
|
run get_auth_dns ubuntu-getssl.duckdns.org |
|
|
|
run get_auth_dns ubuntu-getssl.ignorelist.com |
|
|
|
|
|
|
|
# Assert that we've found the primary_ns server |
|
|
|
#assert_output --regexp 'set primary_ns = ns[1-9]+\.duckdns\.org' |
|
|
|
#assert_output --regexp 'set primary_ns = ns[1-3]+\.afraid\.org' |
|
|
|
# Assert that we had to use dig NS |
|
|
|
#assert_line --regexp 'Using nslookup.* NS' |
|
|
|
|
|
|
|
# Check all Authoritive DNS servers are returned if requested |
|
|
|
CHECK_ALL_AUTH_DNS=true |
|
|
|
run get_auth_dns _acme-challenge.ubuntu-getssl.duckdns.org |
|
|
|
assert_output --regexp 'set primary_ns=(ns[1-9]+\.duckdns\.org )+' |
|
|
|
run get_auth_dns _acme-challenge.ubuntu-getssl.ignorelist.com |
|
|
|
assert_output --regexp 'set primary_ns=(ns[1-3]+\.afraid\.org )+' |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -92,10 +92,10 @@ teardown() { |
|
|
|
CHECK_PUBLIC_DNS_SERVER=false |
|
|
|
CHECK_ALL_AUTH_DNS=false |
|
|
|
|
|
|
|
run get_auth_dns _acme-challenge.ubuntu-getssl.duckdns.org |
|
|
|
run get_auth_dns _acme-challenge.ubuntu-getssl.ignorelist.com |
|
|
|
|
|
|
|
# Assert that we've found the primary_ns server |
|
|
|
assert_output --regexp 'set primary_ns=ns[1-9]+\.duckdns\.org' |
|
|
|
assert_output --regexp 'set primary_ns=ns[1-3]+\.afraid\.org' |
|
|
|
|
|
|
|
# Assert that we had to use nslookup NS |
|
|
|
assert_line --regexp 'Using nslookup.*-type=soa' |
|
|
|
@ -103,13 +103,13 @@ teardown() { |
|
|
|
|
|
|
|
# Check all Authoritive DNS servers are returned if requested |
|
|
|
CHECK_ALL_AUTH_DNS=true |
|
|
|
run get_auth_dns _acme-challenge.ubuntu-getssl.duckdns.org |
|
|
|
assert_output --regexp 'set primary_ns=(ns[1-9]+\.duckdns\.org )+' |
|
|
|
run get_auth_dns _acme-challenge.ubuntu-getssl.ignorelist.com |
|
|
|
assert_output --regexp 'set primary_ns=(ns[1-3]+\.afraid\.org )+' |
|
|
|
|
|
|
|
# Check that we also check the public DNS server if requested |
|
|
|
CHECK_PUBLIC_DNS_SERVER=true |
|
|
|
run get_auth_dns _acme-challenge.ubuntu-getssl.duckdns.org |
|
|
|
assert_output --regexp 'set primary_ns=(ns[1-9]+\.duckdns\.org )+ 1\.0\.0\.1' |
|
|
|
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' |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|