mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3:tests: Add substitution test for listing shares
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15243 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
ce3d27a9f5
commit
c213ead8c4
1
selftest/knownfail.d/sustitutions
Normal file
1
selftest/knownfail.d/sustitutions
Normal file
@ -0,0 +1 @@
|
||||
samba3.substitutions.Test.for.share.enum.with.include.substitution
|
@ -20,6 +20,7 @@ failed=0
|
||||
samba_bindir="$BINDIR"
|
||||
samba_srcdir="$SRCDIR"
|
||||
smbclient="$samba_bindir/smbclient"
|
||||
rpcclient="$samba_bindir/rpcclient"
|
||||
|
||||
. $samba_srcdir/testprogs/blackbox/subunit.sh
|
||||
. $samba_srcdir/testprogs/blackbox/common_test_fns.inc
|
||||
@ -59,4 +60,20 @@ test_smbclient_expect_failure \
|
||||
"ls" "//${SERVER}/${USERNAME}_share" "-U$DC_USERNAME%$DC_PASSWORD" ||
|
||||
failed=$((failed + 1))
|
||||
|
||||
testit_grep_count \
|
||||
"Test for share enum with include substitution" \
|
||||
"netname: ${USERNAME}_share" \
|
||||
1 \
|
||||
${rpcclient} "ncacn_np:${SERVER}" "-U$USERNAME%$PASSWORD" \
|
||||
-c netshareenum ||
|
||||
failed=$((failed + 1))
|
||||
|
||||
testit_grep_count \
|
||||
"Negative test for share enum with include substitution" \
|
||||
"netname: ${USERNAME}_share" \
|
||||
0 \
|
||||
${rpcclient} "ncacn_np:${SERVER}" "-U$DC_USERNAME%$DC_PASSWORD" \
|
||||
-c netshareenum ||
|
||||
failed=$((failed + 1))
|
||||
|
||||
exit $failed
|
||||
|
Loading…
x
Reference in New Issue
Block a user