summaryrefslogtreecommitdiff
path: root/source3/selftest/tests.py
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2020-05-11 15:37:00 -0700
committerJeremy Allison <jra@samba.org>2020-05-12 19:53:46 +0000
commite016671d34c24c4768df774425ec743b88e30015 (patch)
tree79b9ba05e8613f8bad1f2952b68fe90d3a873caf /source3/selftest/tests.py
parenta9651d6bc2b6dea8adc859ce21c2431253868887 (diff)
downloadsamba-e016671d34c24c4768df774425ec743b88e30015.tar.gz
s3: selftest: Add test_smbclient_iconv.sh to check client behavior on bad name conversion.
SMB2 and NT1 fail this, CORE already returns NT_STATUS_INVALID_NETWORK_RESPONSE on bad conversion. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14374 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/selftest/tests.py')
-rwxr-xr-xsource3/selftest/tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py
index 2efb21fe8de..b5d7c367883 100755
--- a/source3/selftest/tests.py
+++ b/source3/selftest/tests.py
@@ -424,6 +424,15 @@ for env in ["fileserver"]:
plantestsuite("samba3.blackbox.NT1.shadow_copy_torture", env + "_smb1_done",
[os.path.join(samba3srcdir, "script/tests/test_smb1_shadow_copy_torture.sh"),
'$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/shadow', smbtorture4])
+ plantestsuite("samba3.blackbox.smbclient_iconv.SMB2", env,
+ [os.path.join(samba3srcdir, "script/tests/test_smbclient_iconv.sh"),
+ '$SERVER', '$SERVER_IP', 'bad_iconv', '$USERNAME', '$PASSWORD', smbclient3])
+ plantestsuite("samba3.blackbox.smbclient_iconv.NT1", env + "_smb1_done",
+ [os.path.join(samba3srcdir, "script/tests/test_smbclient_iconv.sh"),
+ '$SERVER', '$SERVER_IP', 'bad_iconv', '$USERNAME', '$PASSWORD', smbclient3, '-mNT1'])
+ plantestsuite("samba3.blackbox.smbclient_iconv.CORE", env + "_smb1_done",
+ [os.path.join(samba3srcdir, "script/tests/test_smbclient_iconv.sh"),
+ '$SERVER', '$SERVER_IP', 'bad_iconv', '$USERNAME', '$PASSWORD', smbclient3, '-mCORE'])
#
# tar command tests