pytests/dns: use dnsserver.record_from_string
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 7 Apr 2021 03:28:11 +0000 (15:28 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 8 Apr 2021 21:54:35 +0000 (21:54 +0000)
commitdf60fe15b33ba2ffa957758e30c5d219dee71555
treeb590d7848f44831760f71e1d2fa58599b60ea4d1
parent55c4f75a282f2e56a8eb2ab473e4b9ba8d9c4daa
pytests/dns: use dnsserver.record_from_string

not netcmd.dns.data_to_dns_record, which is a UI function.

The only practical difference is it will raise DNSParseError, not CommandError.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/tests/dns.py
python/samba/tests/dns_forwarder.py
python/samba/tests/dns_wildcard.py