tests/dns: Check you cannot add empty CNAME
authorGarming Sam <garming@catalyst.net.nz>
Wed, 7 Dec 2016 03:42:38 +0000 (16:42 +1300)
committerGarming Sam <garming@samba.org>
Mon, 12 Dec 2016 07:46:25 +0000 (08:46 +0100)
commit5f5ba893de53f624f04bbfd219aa8bf5ba595060
tree3d0383f6e0c806c37d440162b6f9b0639646160d
parenteacba34a276397df4d5de09d741d0d7390e84020
tests/dns: Check you cannot add empty CNAME

This exercises the dns_check_name case in the DNS server. Directly
attempting to add an invalid name with leading . or double .. cannot be
done due to ndr_pull_component forcing the check on the client side
(leading to a CNAME name of NUL and unexpected data of the actual name).

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Pair-programmed-with: Bob Campbell <bobcampbell@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Mon Dec 12 08:46:26 CET 2016 on sn-devel-144
python/samba/tests/dns.py