aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/features/trashbin.feature
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2017-02-01 10:54:10 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-03-16 23:53:58 -0600
commit659006c234ef2bcaefc160b9541644d6668b5d6c (patch)
tree692f328cedec86392d98749885c1110855106473 /build/integration/features/trashbin.feature
parent5683365a2cc605cbaf41290e4cdfde7028f9014a (diff)
downloadnextcloud-server-659006c234ef2bcaefc160b9541644d6668b5d6c.tar.gz
nextcloud-server-659006c234ef2bcaefc160b9541644d6668b5d6c.zip
Add integration test for trashbin
Add test for basic deletion. Add test when deleting from shared folder as recipient. Add test to check that metadata stays when moving out of shared folder as recipient. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'build/integration/features/trashbin.feature')
-rw-r--r--build/integration/features/trashbin.feature13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/integration/features/trashbin.feature b/build/integration/features/trashbin.feature
new file mode 100644
index 00000000000..adb73f2b5ea
--- /dev/null
+++ b/build/integration/features/trashbin.feature
@@ -0,0 +1,13 @@
+Feature: trashbin
+ Background:
+ Given using api version "1"
+ And using old dav path
+ And As an "admin"
+ And app "files_trashbin" is enabled
+
+ Scenario: deleting a file moves it to trashbin
+ Given As an "admin"
+ And user "user0" exists
+ When User "user0" deletes file "/textfile0.txt"
+ Then as "user0" the file "/textfile0.txt" exists in trash
+