Skip to content
Snippets Groups Projects
Commit 2e2f12a5 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

tests-extra: zone/notexists differentiates between unknown and unloadable

parent d5f1864f
Branches
Tags
No related merge requests found
......@@ -16,6 +16,10 @@ t.start()
# Check if the server is answering and zone _isn't_ loaded
resp = master.dig("notexist.", "SOA", udp=True)
resp.check(rcode="SERVFAIL") # Unloadable zone, but in the zone database
# Check if the server is answering and zone is unknown
resp = master.dig("xfiles.", "SOA", udp=True)
resp.check(rcode="REFUSED")
# The other zone should answer without problem
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment