summaryrefslogtreecommitdiffstats
path: root/build/integration/features/sharing-v1.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/sharing-v1.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/sharing-v1.feature')
-rw-r--r--build/integration/features/sharing-v1.feature30
1 files changed, 30 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index acfeb0e611f..517ee46ea38 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -988,3 +988,33 @@ Feature: sharing
And Updating last share with
| publicUpload | true |
Then the OCS status code should be "404"
+ And the HTTP status code should be "200"
+
+ Scenario: deleting file out of a share as recipient creates a backup for the owner
+ Given As an "admin"
+ And user "user0" exists
+ And user "user1" exists
+ And user "user0" created a folder "/shared"
+ And User "user0" moved file "/textfile0.txt" to "/shared/shared_file.txt"
+ And folder "/shared" of user "user0" is shared with user "user1"
+ When User "user1" deletes file "/shared/shared_file.txt"
+ Then as "user1" the file "/shared/shared_file.txt" does not exist
+ And as "user0" the file "/shared/shared_file.txt" does not exist
+ And as "user0" the file "/shared_file.txt" exists in trash
+ And as "user1" the file "/shared_file.txt" exists in trash
+
+ Scenario: deleting folder out of a share as recipient creates a backup for the owner
+ Given As an "admin"
+ And user "user0" exists
+ And user "user1" exists
+ And user "user0" created a folder "/shared"
+ And user "user0" created a folder "/shared/sub"
+ And User "user0" moved file "/textfile0.txt" to "/shared/sub/shared_file.txt"
+ And folder "/shared" of user "user0" is shared with user "user1"
+ When User "user1" deletes folder "/shared/sub"
+ Then as "user1" the folder "/shared/sub" does not exist
+ And as "user0" the folder "/shared/sub" does not exist
+ And as "user0" the folder "/sub" exists in trash
+ And as "user0" the file "/sub/shared_file.txt" exists in trash
+ And as "user1" the folder "/sub" exists in trash
+ And as "user1" the file "/sub/shared_file.txt" exists in trash