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:
parent
983955a2bc
commit
ad6d5a9c16
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user