]>
git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.recursor-dnssec/test_ZTC.py
6 from recursortests
import RecursorTest
8 class testZTC(RecursorTest
):
11 _config_template
= """
14 _lua_config_file
= """
15 zoneToCache(".", "axfr", "193.0.14.129") -- k-root
21 # we don't need all the auth stuff
25 confdir
= os
.path
.join('configs', cls
._confdir
)
26 cls
.createConfigDir(confdir
)
28 cls
.generateRecursorConfig(confdir
)
29 cls
.startRecursor(confdir
, cls
._recursorPort
)
32 def tearDownClass(cls
):
33 cls
.tearDownRecursor()
36 grepCmd
= ['grep', 'validationStatus="Secure"', 'configs/' + self
._confdir
+ '/recursor.log']
41 ret
= subprocess
.check_output(grepCmd
, stderr
=subprocess
.STDOUT
)
42 except subprocess
.CalledProcessError
as e
:
47 self
.assertNotEqual(ret
, b
'')