]>
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
= """
25 # we don't need all the auth stuff
29 confdir
= os
.path
.join('configs', cls
._confdir
)
30 cls
.createConfigDir(confdir
)
32 cls
.generateRecursorYamlConfig(confdir
, False)
33 cls
.startRecursor(confdir
, cls
._recursorPort
)
36 def tearDownClass(cls
):
37 cls
.tearDownRecursor()
40 grepCmd
= ['grep', 'validationStatus="Secure"', 'configs/' + self
._confdir
+ '/recursor.log']
45 ret
= subprocess
.check_output(grepCmd
, stderr
=subprocess
.STDOUT
)
46 except subprocess
.CalledProcessError
as e
:
51 self
.assertNotEqual(ret
, b
'')