diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2025-01-27 17:03:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-27 17:03:04 +0100 |
commit | 2f862d1fcbeb2d19377b758e9bf714d94afeea21 (patch) | |
tree | 4e6e381246ee1ad24a84029cf2a771d5281ce64a | |
parent | b70654aeed6bec4befd65641717a6d167d6ddbd0 (diff) | |
parent | b59c71ccf86deae4707498f5deb59cedf2b4bd6f (diff) | |
download | nextcloud-server-2f862d1fcbeb2d19377b758e9bf714d94afeea21.tar.gz nextcloud-server-2f862d1fcbeb2d19377b758e9bf714d94afeea21.zip |
Merge pull request #50221 from nextcloud/add-integration-tests-for-moving-a-file-from-and-to-a-shared-folder
-rw-r--r-- | build/integration/dav_features/webdav-related.feature | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/build/integration/dav_features/webdav-related.feature b/build/integration/dav_features/webdav-related.feature index f97cc8f6f71..4c8340c1b03 100644 --- a/build/integration/dav_features/webdav-related.feature +++ b/build/integration/dav_features/webdav-related.feature @@ -48,6 +48,33 @@ Feature: webdav-related When User "user0" moves file "/test/test" to "/test" Then the HTTP status code should be "403" + Scenario: Moving a file from shared folder to root folder + Given using old dav path + And user "user0" exists + And user "user1" exists + And user "user0" created a folder "/testshare" + And User "user0" copies file "/welcome.txt" to "/testshare/welcome.txt" + And as "user0" creating a share with + | path | testshare | + | shareType | 0 | + | shareWith | user1 | + When User "user1" moves file "/testshare/welcome.txt" to "/movedwelcome.txt" + Then As an "user1" + And Downloaded content when downloading file "/movedwelcome.txt" with range "bytes=0-6" should be "Welcome" + + Scenario: Moving a file from root folder to shared folder + Given using old dav path + And user "user0" exists + And user "user1" exists + And user "user0" created a folder "/testshare" + And as "user0" creating a share with + | path | testshare | + | shareType | 0 | + | shareWith | user1 | + When User "user1" moves file "/welcome.txt" to "/testshare/movedwelcome.txt" + Then As an "user1" + And Downloaded content when downloading file "/testshare/movedwelcome.txt" with range "bytes=0-6" should be "Welcome" + Scenario: Moving a file to a folder with no permissions Given using old dav path And As an "admin" |