1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

pytest: dns_aging: add helper for DNS delete updates

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2021-06-14 23:36:57 +12:00 committed by Andrew Bartlett
parent 983955a2bc
commit ad6d5a9c16

View File

@ -332,6 +332,12 @@ class TestDNSAging(DNSTest):
self.assert_dns_rcode_equals(code, dns.DNS_RCODE_OK)
return response
def dns_delete(self, name, data, wtype=None):
return self.dns_update_non_text(name,
data,
wtype,
qclass=dns.DNS_QCLASS_NONE)
def dns_update_record(self, name, txt, ttl=900):
if isinstance(txt, str):
txt = [txt]