Skip to content
Snippets Groups Projects
Commit e4f219c4 authored by David Vasek's avatar David Vasek Committed by Daniel Salzman
Browse files

tests-extra: catalog/expire -- speed up the test

parent 3d53c11b
Branches
Tags
No related merge requests found
Pipeline #101630 passed with stages
in 9 minutes and 36 seconds
$ORIGIN catalog1. $ORIGIN catalog1.
$TTL 0 $TTL 0
@ SOA ns admin 1 2 2 8 600 @ SOA ns admin 1 1 1 3 600
NS ns NS ns
ns AAAA ::0 ns AAAA ::0
version TXT "2" version TXT "2"
......
$ORIGIN cataloged1. $ORIGIN cataloged1.
$TTL 1200 $TTL 1200
@ SOA ns admin 10001 5 5 15 600 @ SOA ns admin 10001 4 4 8 600
NS ns NS ns
ns AAAA ::0 ns AAAA ::0
...@@ -32,20 +32,21 @@ slave.zones_wait(members) ...@@ -32,20 +32,21 @@ slave.zones_wait(members)
master.stop() # even regular answers must be blocked (to prevent refresh) master.stop() # even regular answers must be blocked (to prevent refresh)
# Check non-expiration of catalog. # Check non-expiration of catalog.
t.sleep(10) # greater than the SOA expire t.sleep(4) # greater than the SOA expire
resp = slave.dig("catalog1.", "SOA", udp=False, tsig=True) resp = slave.dig("catalog1.", "SOA", udp=False, tsig=True)
resp.check(rcode="NOERROR") resp.check(rcode="NOERROR")
resp = slave.dig("cataloged1.", "SOA", udp=False, tsig=True) resp = slave.dig("cataloged1.", "SOA", udp=False, tsig=True)
resp.check(rcode="NOERROR") resp.check(rcode="NOERROR")
# Check regular expiration of member zones. # Check regular expiration of member zones.
t.sleep(7) # together with previous sleep greater than members expire t.sleep(5) # together with previous sleep greater than members expire
resp = slave.dig("catalog1.", "SOA", udp=False, tsig=True) resp = slave.dig("catalog1.", "SOA", udp=False, tsig=True)
resp.check(rcode="NOERROR") resp.check(rcode="NOERROR")
resp = slave.dig("cataloged1.", "SOA", udp=False, tsig=True) resp = slave.dig("cataloged1.", "SOA", udp=False, tsig=True)
resp.check(rcode="SERVFAIL") resp.check(rcode="SERVFAIL")
master.start() master.start()
slave.ctl("zone-refresh") # don't waste time waiting for member bootstrap
slave.zones_wait(members) slave.zones_wait(members)
# Check manual expiration of catalog. # Check manual expiration of catalog.
......
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