python/samba/tests: PY3 port samba.tests.dns
authorNoel Power <noel.power@suse.com>
Sun, 4 Nov 2018 17:32:19 +0000 (17:32 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:21 +0000 (10:38 +0100)
commita25bd836ee601ca704d2899f17259b9b5cd440cf
tree2d80355287e7640f5c837f697a7190e0bcd5a5d8
parent0d73a2b0a29c108c3a0efbbe0473142046302b71
python/samba/tests: PY3 port samba.tests.dns

Misc hanges needed to get make test TEST=samba.tests.dns &
samb.tests.dns_fowarder to run and pass under PY3

* socket.send needs bytes not string
* rec.dwTimeStamp expects int not float (in PY3 / operator
  will give float results, for int use '//' instead)
* re.match using bytes needs a bytes search term

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/dns.py
python/samba/tests/dns_forwarder.py
python/samba/tests/dns_forwarder_helpers/server.py
source4/scripting/bin/samba_dnsupdate