1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

provision: Correctly provision the SOA record minimum TTL

This fixes bug #10466

Signed-off-by: Kai Blin <kai@samba.org>
Reviewed-by: Guenter Kukkukk <kukks@samba.org>

Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Wed May 21 10:55:00 CEST 2014 on sn-devel-104
This commit is contained in:
Kai Blin 2014-05-16 18:33:42 +02:00
parent 392ec4d241
commit 634f116fbb
2 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,7 @@ class SOARecord(dnsp.DnssrvRpcRecord):
soa.expire = expire
soa.mname = mname
soa.rname = rname
soa.minimum = minimum
self.data = soa

View File

@ -289,6 +289,7 @@ class TestSimpleQueries(DNSTest):
self.assert_dns_rcode_equals(response, dns.DNS_RCODE_OK)
self.assert_dns_opcode_equals(response, dns.DNS_OPCODE_QUERY)
self.assertEquals(response.ancount, 1)
self.assertEquals(response.answers[0].rdata.minimum, 3600)
class TestDNSUpdates(DNSTest):