From 418cd93f4c9c90b0f5002e32203be8281af660cf Mon Sep 17 00:00:00 2001 From: Aaron Haslett Date: Mon, 2 Jul 2018 13:43:33 +1200 Subject: dns: server side implementation of record aging Code for retrieving aging properties from a zone and using them for timestamp setting logic during processing of DNS requests. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10812 Signed-off-by: Aaron Haslett Reviewed-by: Gary Lockyer Reviewed-by: Andrew Bartlett --- python/samba/tests/dns.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python') diff --git a/python/samba/tests/dns.py b/python/samba/tests/dns.py index 722b75ce81b..800ce576dec 100644 --- a/python/samba/tests/dns.py +++ b/python/samba/tests/dns.py @@ -1104,6 +1104,7 @@ class TestZones(DNSTest): self.assertTrue(rec.dwTimeStamp > 0) rec.dwTimeStamp -= interval*5 self.ldap_modify_dnsrecs(name, mod_ts) + self.assertTrue(callable(getattr(dsdb, '_scavenge_dns_records', None))) dsdb._scavenge_dns_records(self.samdb) recs = self.ldap_get_dns_records(name) -- cgit v1.2.1