summaryrefslogtreecommitdiffstats
path: root/tests/features/worm.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features/worm.t')
-rwxr-xr-xtests/features/worm.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/features/worm.t b/tests/features/worm.t
index c725f5858ec..9766dc1ad2b 100755
--- a/tests/features/worm.t
+++ b/tests/features/worm.t
@@ -64,6 +64,14 @@ TEST `echo "worm 2" >> $M0/file3`
EXPECT 'worm 1' cat $M0/file3
TEST ! rm -f $M0/file3
+## Test for checking if Worm files are undeletable after setting worm-files-deletable as 0.
+TEST $CLI volume set $V0 features.worm-files-deletable 0
+TEST `echo "worm 1" > $M0/file4`
+TEST chmod 0444 $M0/file4
+sleep 10
+TEST `echo "worm 1" >> $M0/file4`
+TEST ! rm -f $M0/file4
+
TEST $CLI volume stop $V0
EXPECT 'Stopped' volinfo_field $V0 'Status'