Commit 2b2f51f8 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

tests-extra: added test if signing is consistent

parent d96b369a
example.com. 3 SOA dns1.example.com. hostmaster.example.com. 2010111227 21600 3600 604800 3
example.com. 0 NS dns1.example.com.
example.com. 2 MX 10 mail.example.com.
dns1.example.com. 4 A 192.0.2.1
dns1.example.com. 3 AAAA 2001:db8::1
foo.example.com. 5 A 192.0.2.4
mail.example.com. 3 A 192.0.2.3
mail.example.com. 1 AAAA 2001:db8::3
deleg.example.com. 6 NS dns1.example.com.
deleg2.ent.example.com. 7 NS dns1.example.com.
abcd.example.com. 9 A 192.0.3.4
abce.example.com. 9 A 192.0.3.5
abcf.example.com. 9 A 192.0.3.6
abcg.example.com. 9 A 192.0.3.7
#!/usr/bin/env python3
'''Test for no re-signing if the zone is properly signed.'''
from dnstest.utils import *
from dnstest.test import Test
t = Test()
master = t.server("knot")
zone = t.zone("example.com.", storage=".")
t.link(zone, master, ixfr=True, journal_content="all")
master.dnssec(zone).enable = True
t.start()
serial = master.zone_wait(zone)
master.random_ddns(zone)
serial = master.zone_wait(zone, serial)
master.stop()
t.sleep(1)
master.start()
new_serial = master.zone_wait(zone)
if new_serial != serial:
set_err("zone got re-signed")
t.stop()
Markdown is supported
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