]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-sharesec: Add Test to verify command option "--view-all"
authorGuenther Deschner <gd@samba.org>
Wed, 11 Dec 2024 10:03:47 +0000 (15:33 +0530)
committerJule Anger <janger@samba.org>
Tue, 21 Jan 2025 07:38:17 +0000 (07:38 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15780

Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Vinit Agnihotri <vagnihot@redhat.com>
Reviewed-by: John Mulligan <jmulligan@samba.org>
(cherry picked from commit 0a12254ea8b3414deebc3e6329025052c650356e)

source3/script/tests/test_sharesec.sh

index a083a56545a8736975cedbe435a43acb14ded3db..b44ffcb4d587d8c7a848efea4d8ed8e1690db982 100755 (executable)
@@ -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