Skip to content
Snippets Groups Projects
Commit b41cfc1b authored by Lubos Slovak's avatar Lubos Slovak
Browse files

EDNS: Improved version test

parent cb84d571
Branches
Tags
No related merge requests found
......@@ -20,5 +20,9 @@ resp.check(rcode="NOERROR", edns_version=0)
# Unsupported EDNS version 1.
resp = server.dig("example.com", "SOA", edns=1)
resp.check(rcode="BADVERS", edns_version=0)
compare(resp.count(section="answer"), 0, "Answer count")
compare(resp.count(section="authority", 0, "Authority count")
compare(resp.count(section="additional", 0, "Additional count")
t.end()
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