]>
git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.recursor-dnssec/test_NotYetValid.py
7 from recursortests
import RecursorTest
10 class testNotYetValid(RecursorTest
):
11 """This regression test starts the authoritative servers with a clock that is
12 set 15 days into the future. Hence, the recursor must reject the signatures
13 because they are not yet valid.
15 _confdir
= 'NotYetValid'
17 _config_template
= """dnssec=validate"""
19 _auth_env
= {'LD_PRELOAD':os
.environ
.get('LIBFAKETIME'),
23 query
= dns
.message
.make_query('host1.secure.example', 'A')
24 res
= self
.sendUDPQuery(query
)
26 self
.assertRcodeEqual(res
, dns
.rcode
.SERVFAIL
)