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), master, slave, ixfr=True)
# Wait for AXFR to slave server.
serials_init = master.zones_wait(zones)
# Update zone files on master.
for zone in zones:
master.update_zonefile(zone, random=True)
# 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)
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