Skip to content
Snippets Groups Projects
Commit f42fdf4c authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

tests: improved DS push, when roll+push+check too fast

parent 1ad6ddf0
No related branches found
No related tags found
1 merge request!1153Ksk state revoked
......@@ -64,26 +64,26 @@ def check_zone(server, zone, dnskeys, dnskey_rrsigs, cdnskeys, soa_rrsigs, msg):
server.zone_verify(zone)
def wait_for_rrsig_count(t, server, rrtype, rrsig_count, timeout):
rtime = 0
rtime = 0.0
while True:
qdnskeyrrsig = server.dig("example.com", rrtype, dnssec=True, bufsize=4096)
found_rrsigs = qdnskeyrrsig.count("RRSIG")
if found_rrsigs == rrsig_count:
break
rtime = rtime + 1
t.sleep(1)
rtime = rtime + 0.1
t.sleep(0.1)
if rtime > timeout:
break
def wait_for_dnskey_count(t, server, dnskey_count, timeout):
rtime = 0
rtime = 0.0
while True:
qdnskeyrrsig = server.dig("example.com", "DNSKEY", dnssec=True, bufsize=4096)
found_dnskeys = qdnskeyrrsig.count("DNSKEY")
if found_dnskeys == dnskey_count:
break
rtime = rtime + 1
t.sleep(1)
rtime = rtime + 0.1
t.sleep(0.1)
if rtime > timeout:
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment