From: Guenther Deschner Date: Wed, 11 Dec 2024 10:03:47 +0000 (+0530) Subject: s3-sharesec: Add Test to verify command option "--view-all" X-Git-Tag: samba-4.20.7~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fb64f70203f8aaf57dcf8cf7800e3640c012346;p=thirdparty%2Fsamba.git s3-sharesec: Add Test to verify command option "--view-all" BUG: https://bugzilla.samba.org/show_bug.cgi?id=15780 Signed-off-by: Guenther Deschner Signed-off-by: Vinit Agnihotri Reviewed-by: John Mulligan (cherry picked from commit 0a12254ea8b3414deebc3e6329025052c650356e) --- diff --git a/source3/script/tests/test_sharesec.sh b/source3/script/tests/test_sharesec.sh index a083a56545a..b44ffcb4d58 100755 --- a/source3/script/tests/test_sharesec.sh +++ b/source3/script/tests/test_sharesec.sh @@ -137,4 +137,12 @@ testit "Check for default ACL" \ test "$ACL" = "ACL:S-1-1-0:ALLOWED/0x0/FULL" || failed=$(expr $failed + 1) +testit "Create 2nd share" $NET_CMD conf addshare tmp_share2 /tmp || + failed=$(expr $failed + 1) +COUNT=$($CMD --view-all | grep ACL: | sed -e 's/^ACL://' | wc -l) +testit "Verify standard ACL counts" test $COUNT -gt 2 || + failed=$(expr $failed + 1) +testit "Delete share" $NET_CMD conf delshare tmp_share2 || + failed=$(expr $failed + 1) + testok $0 $failed