mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:tests: Add smbget test for smb://DOAMIN;user%password@server/share/file
This is supported according to the smbget manpage! BUG: https://bugzilla.samba.org/show_bug.cgi?id=15525 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
40de903365
commit
e5fe856e76
@ -145,6 +145,22 @@ test_singlefile_smburl()
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test_singlefile_smburl2()
|
||||||
|
{
|
||||||
|
clear_download_area
|
||||||
|
$SMBGET "smb://$DOMAIN;$USERNAME:$PASSWORD@$SERVER_IP/smbget/testfile"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo 'ERROR: RC does not match, expected: 0'
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
cmp --silent $WORKDIR/testfile ./testfile
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo 'ERROR: file content does not match'
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
test_singlefile_authfile()
|
test_singlefile_authfile()
|
||||||
{
|
{
|
||||||
clear_download_area
|
clear_download_area
|
||||||
@ -499,6 +515,10 @@ testit "download single file with --update and UPN" test_singlefile_U_UPN ||
|
|||||||
testit "download single file with smb URL" test_singlefile_smburl ||
|
testit "download single file with smb URL" test_singlefile_smburl ||
|
||||||
failed=$(expr $failed + 1)
|
failed=$(expr $failed + 1)
|
||||||
|
|
||||||
|
testit "download single file with smb URL including domain" \
|
||||||
|
test_singlefile_smburl2 ||
|
||||||
|
failed=$(expr $failed + 1)
|
||||||
|
|
||||||
testit "download single file with authfile" test_singlefile_authfile ||
|
testit "download single file with authfile" test_singlefile_authfile ||
|
||||||
failed=$(expr $failed + 1)
|
failed=$(expr $failed + 1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user