1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:tests: Add test for illegal value detection for 'name resolve order'

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12739

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Apr 13 15:20:04 CEST 2017 on sn-devel-144
This commit is contained in:
Noel Power 2017-04-11 14:38:34 +01:00 committed by Andreas Schneider
parent 8050db2303
commit 5c04521b8e

View File

@ -58,6 +58,25 @@ EOF
${TESTPARM} ${TEMP_CONFFILE} ${TESTPARM} ${TEMP_CONFFILE}
} }
testit "name resolve order = lmhosts wins host bcast"\
test_one_global_option "name resolve order = lmhosts wins host bcast" || \
failed=`expr ${failed} + 1`
testit_expect_failure "name resolve order = bad wins host bcast"\
test_one_global_option "name resolve order = bad wins host bcast" || \
failed=`expr ${failed} + 1`
testit_expect_failure "name resolve order = lmhosts bad host bcast"\
test_one_global_option "name resolve order = lmhosts bad host bcast" || \
failed=`expr ${failed} + 1`
testit_expect_failure "name resolve order = lmhosts wins bad bcast"\
test_one_global_option "name resolve order = lmhosts wins bad bcast" || \
failed=`expr ${failed} + 1`
testit_expect_failure "name resolve order = lmhosts wins host bad"\
test_one_global_option "name resolve order = lmhosts wins host bad" || \
failed=`expr ${failed} + 1`
testit "netbios name" \ testit "netbios name" \
test_one_global_option "netbios name = funky" || \ test_one_global_option "netbios name = funky" || \