]>
git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.recursor-dnssec/test_TraceFail.py
5 from recursortests
import RecursorTest
7 class testTraceFail(RecursorTest
):
10 _config_template
= """
12 forward-zones-recurse=.=127.0.0.1:9999
18 # we don't need all the auth stuff
22 confdir
= os
.path
.join('configs', cls
._confdir
)
23 cls
.createConfigDir(confdir
)
25 cls
.generateRecursorConfig(confdir
)
26 cls
.startRecursor(confdir
, cls
._recursorPort
)
29 def tearDownClass(cls
):
30 cls
.tearDownRecursor()
33 query
= dns
.message
.make_query('example', 'A', want_dnssec
=False)
34 res
= self
.sendUDPQuery(query
)
35 self
.assertRcodeEqual(res
, dns
.rcode
.SERVFAIL
)
37 grepCmd
= ['grep', 'END OF FAIL TRACE', 'configs/' + self
._confdir
+ '/recursor.log']
42 ret
= subprocess
.check_output(grepCmd
, stderr
=subprocess
.STDOUT
)
43 except subprocess
.CalledProcessError
as e
:
48 self
.assertNotEqual(ret
, b
'')