Skip to content
Snippets Groups Projects
Verified Commit f16b09d6 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

hints tests: simple check of comment parsing

parent 4ec39892
Branches
Tags
2 merge requests!1327Update manager branch with the newest changes from master,!1315hints.add_hosts(): respect comments anywhere in a line
192.0.2.1 myname.lan # badname.lan and the rest of the comment
......@@ -35,7 +35,7 @@ end
local function test_nxdomain()
hints.config() -- clean start
hints.use_nodata(false)
hints['myname.lan'] = '192.0.2.1'
hints.add_hosts('hints.test.hosts')
-- TODO: prefilling or some other way of getting NXDOMAIN (instead of SERVFAIL)
utils.check_answer('bad name gives NXDOMAIN',
'badname.lan', kres.type.A, kres.rcode.SERVFAIL)
......
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