aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2025-05-20 08:05:59 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2025-05-20 08:09:59 +0200
commite322bf408edde943c7ca6eb43acddfef9dc7de66 (patch)
tree0a22559997c6208380b61adbeaa5cc06a3111647
parentcc22d7488700d2020d483eb245f2fd09a2ae9863 (diff)
downloadnextcloud-server-add-integration-tests-for-deleting-a-file-copied-from-a-share.tar.gz
nextcloud-server-add-integration-tests-for-deleting-a-file-copied-from-a-share.zip
test: Add integration tests for deleting a file copied from a shareadd-integration-tests-for-deleting-a-file-copied-from-a-share
Note that the delete permission is implicitly disabled in the first test because the delete permission is automatically removed for single file shares. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--build/integration/dav_features/webdav-related.feature34
1 files changed, 34 insertions, 0 deletions
diff --git a/build/integration/dav_features/webdav-related.feature b/build/integration/dav_features/webdav-related.feature
index f439330838c..7640b906389 100644
--- a/build/integration/dav_features/webdav-related.feature
+++ b/build/integration/dav_features/webdav-related.feature
@@ -169,6 +169,40 @@ Feature: webdav-related
Then the HTTP status code should be "403"
And Downloaded content when downloading file "/testshare/overwritethis.txt" with range "bytes=0-6" should be "Welcome"
+ Scenario: Deleting a file copied from a received share
+ Given using old dav path
+ And user "user0" exists
+ And user "user1" exists
+ And User "user0" uploads file "data/textfile.txt" to "/test.txt"
+ And As an "user0"
+ And creating a share with
+ | path | /test.txt |
+ | shareType | 0 |
+ | shareWith | user1 |
+ And As an "user1"
+ And accepting last share
+ When User "user1" copies file "/test.txt" to "/copied.txt"
+ And User "user1" deletes file "/copied.txt"
+ Then the HTTP status code should be "204"
+
+ Scenario: Deleting a file copied from a received shared folder without delete permission
+ Given using old dav path
+ And user "user0" exists
+ And user "user1" exists
+ And User "user0" created a folder "/Test"
+ And User "user0" uploads file "data/textfile.txt" to "/Test/test.txt"
+ And As an "user0"
+ And creating a share with
+ | path | /Test |
+ | shareType | 0 |
+ | shareWith | user1 |
+ | permissions | 23 |
+ And As an "user1"
+ And accepting last share
+ When User "user1" copies file "/Test/test.txt" to "/copied.txt"
+ And User "user1" deletes file "/copied.txt"
+ Then the HTTP status code should be "204"
+
Scenario: download a file with range
Given using old dav path
And As an "admin"