Commit ceda7d07 authored by Daniel Salzman's avatar Daniel Salzman

tests-extra: add ixfr many zones test

parent 84ee4852
#!/usr/bin/env python3
'''Test for IXFR of many zones from Bind to Knot'''
from dnstest.test import Test
t = Test()
master = t.server("bind")
slave = t.server("knot")
zones = t.zone_rnd(400, records=10, dnssec=False)
t.link(zones, master, slave, ixfr=True)
t.start()
# Wait for AXFR to slave server.
serials_init = master.zones_wait(zones)
slave.zones_wait(zones)
# Update zone files on master.
for zone in zones:
master.update_zonefile(zone, random=True)
master.reload()
t.sleep(20)
# Wait for IXFR to slave.
master.zones_wait(zones, serials_init)
slave.zones_wait(zones, serials_init)
# Compare IXFR between servers.
t.xfr_diff(master, slave, zones, serials_init)
t.end()
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