t.link(zone, bind)
t.start()
+knot.zone_wait(zone)
+bind.zone_wait(zone)
# B1. Answer.
resp = knot.dig("x.w.example", "MX", dnssec=True)
knot = t.server("knot")
+if knot.valgrind:
+ knot.semantic_check = False
+
catz = t.zone("catalog1.", storage=".")
t.link(catz, knot)
t.link(zones, master, slave, ixfr=True)
+if master.valgrind:
+ master.semantic_check = False
+ slave.semantic_check = False
+
master.tcp_io_timeout = 3000
slave.tcp_io_timeout = 3000
slave.tcp_remote_io_timeout = 8000
t.link(zone_common2, remote)
t.link(zone_remote, remote)
+if local.valgrind:
+ local.semantic_check = False
+ remote.semantic_check = False
+
def is_subzone(subzone, zone):
"""Tests if the first zone is a subzone of the second one or equal, case insensitive."""
return subzone.name.lower().endswith(zone.name.lower())
knot.add_module(zones[1], ModStats())
t.start()
-t.sleep(4)
+t.zones_wait(zones)
check_item(knot, "server", "zone-count", 2)
valgrind_delay = 2 if slave.valgrind else 0 # allow a little time margin under Valgrind
valgrind_delay += 2 # even without valgrind, add some tolerance because rounding timestamps to whole seconds multiple times
+if master.valgrind:
+ master.semantic_check = False
+ slave.semantic_check = False
+
t.start()
serials_init = slave.zones_wait(zones)
start_time = int(t.uptime())
lockfile = os.path.join(backup_dir, "lock.knot_backup")
labelfile = os.path.join(backup_dir, "knot_backup.label")
+if master.valgrind:
+ master.semantic_check = False
+ master2.semantic_check = False
+
t.start()
serials_init = master.zones_wait(zones)
master.zonefile_sync = 0
slave.zonefile_sync = 0
+if master.valgrind:
+ master.semantic_check = False
+ slave.semantic_check = False
+
t.start()
m_zfpath = master.zones[zone[0].name].zfile.path