summaryrefslogtreecommitdiff
path: root/source3/script/tests
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-06 12:24:13 +0200
committerMichael Adam <obnox@samba.org>2011-07-06 14:07:13 +0200
commit93ad34c4ad1a8c0e68eed0ddf69a332a71ba860c (patch)
treedfe3ea63e5be69f3fb2015eae542fa9c36b71170 /source3/script/tests
parent4af8615da8494b65eae189c697bcfecb4ce7c889 (diff)
downloadsamba-93ad34c4ad1a8c0e68eed0ddf69a332a71ba860c.tar.gz
samba-93ad34c4ad1a8c0e68eed0ddf69a332a71ba860c.tar.bz2
samba-93ad34c4ad1a8c0e68eed0ddf69a332a71ba860c.zip
s3:test: catch more errors in test_access_check() in the smbclient_s3 test
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Jul 6 14:07:13 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/script/tests')
-rwxr-xr-xsource3/script/tests/test_smbclient_s3.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh
index 167b5ae993..fa721cb4ea 100755
--- a/source3/script/tests/test_smbclient_s3.sh
+++ b/source3/script/tests/test_smbclient_s3.sh
@@ -410,6 +410,14 @@ EOF
test_ccache_access()
{
$WBINFO --ccache-save="${USERNAME}%${PASSWORD}"
+ ret=$?
+
+ if [ $ret != 0 ] ; then
+ echo "wbinfo failed to store creds in cache (user='${USERNAME}', pass='${PASSWORD}')"
+ false
+ return
+ fi
+
$SMBCLIENT //$SERVER_IP/tmp -C -U "${USERNAME}%" \
-c quit 2>&1
ret=$?
@@ -421,6 +429,14 @@ test_ccache_access()
fi
$WBINFO --ccache-save="${USERNAME}%GarBage"
+ ret=$?
+
+ if [ $ret != 0 ] ; then
+ echo "wbinfo failed to store creds in cache (user='${USERNAME}', pass='GarBage')"
+ false
+ return
+ fi
+
$SMBCLIENT //$SERVER_IP/tmp -C -U "${USERNAME}%" \
-c quit 2>&1
ret=$?