diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-06-30 12:15:58 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-06-30 12:21:01 +0200 |
commit | b32b296ed770044b347e9216f3f4ad68c55b14f3 (patch) | |
tree | 1fb9b7c05f878729e14068db05691568b37bf9bb /build/integration/features/webdav-related.feature | |
parent | 3571207bd956de5dc8aece2ba879f31f3696fef6 (diff) | |
download | nextcloud-server-b32b296ed770044b347e9216f3f4ad68c55b14f3.tar.gz nextcloud-server-b32b296ed770044b347e9216f3f4ad68c55b14f3.zip |
Add integration tests
Diffstat (limited to 'build/integration/features/webdav-related.feature')
-rw-r--r-- | build/integration/features/webdav-related.feature | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/build/integration/features/webdav-related.feature b/build/integration/features/webdav-related.feature index 06df280ea64..a135f077f71 100644 --- a/build/integration/features/webdav-related.feature +++ b/build/integration/features/webdav-related.feature @@ -257,3 +257,32 @@ Feature: webdav-related When Downloading file "/welcome.txt" as "userToBeDisabled" Then the HTTP status code should be "503" + Scenario: Copying files into a folder with edit permissions + Given using dav path "remote.php/webdav" + And user "user0" exists + And user "user1" exists + And As an "user1" + And user "user1" created a folder "/testcopypermissionsAllowed" + And as "user1" creating a share with + | path | testcopypermissionsAllowed | + | shareType | 0 | + | permissions | 31 | + | shareWith | user0 | + And User "user0" uploads file with content "copytest" to "/copytest.txt" + When User "user0" copies file "/copytest.txt" to "/testcopypermissionsAllowed/copytest.txt" + Then the HTTP status code should be "201" + + Scenario: Copying files into a folder without edit permissions + Given using dav path "remote.php/webdav" + And user "user0" exists + And user "user1" exists + And As an "user1" + And user "user1" created a folder "/testcopypermissionsNotAllowed" + And as "user1" creating a share with + | path | testcopypermissionsNotAllowed | + | shareType | 0 | + | permissions | 1 | + | shareWith | user0 | + And User "user0" uploads file with content "copytest" to "/copytest.txt" + When User "user0" copies file "/copytest.txt" to "/testcopypermissionsNotAllowed/copytest.txt" + Then the HTTP status code should be "403" |