Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2015-11-20 14:56:05 +0300
committerSergio Bertolin <sbertolin@solidgear.es>2015-11-20 14:56:05 +0300
commit69a03c2e60fce7e64baac1659af71cb4b0af0d76 (patch)
treed0d5553d10cccdf1de2d41b4cf83a14ace04ca88 /build
parenta2938385f9f5d585eacdbe15791b913614c94f9d (diff)
Added test case about trying to reshare a file with more permissions
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/sharing-v1.feature19
-rw-r--r--build/integration/features/webdav-related.feature18
2 files changed, 28 insertions, 9 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index 33085866bf4..063a40b1d3c 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -333,6 +333,25 @@ Feature: sharing
Then the OCS status code should be "404"
And the HTTP status code should be "200"
+ Scenario: User is not allowed to reshare file with more permissions
+ As an "admin"
+ Given user "user0" exists
+ And user "user1" exists
+ And user "user2" exists
+ And As an "user0"
+ And creating a share with
+ | path | /textfile0.txt |
+ | shareType | 0 |
+ | shareWith | user1 |
+ | permissions | 16 |
+ And As an "user1"
+ When creating a share with
+ | path | /textfile0. (2).txt |
+ | shareType | 0 |
+ | shareWith | user2 |
+ | permissions | 31 |
+ Then the OCS status code should be "404"
+ And the HTTP status code should be "200"
Scenario: Delete all group shares
Given As an "admin"
diff --git a/build/integration/features/webdav-related.feature b/build/integration/features/webdav-related.feature
index 27d354644d0..961b6b03431 100644
--- a/build/integration/features/webdav-related.feature
+++ b/build/integration/features/webdav-related.feature
@@ -1,13 +1,13 @@
Feature: sharing
- Background:
- Given using api version "1"
-
- Scenario: moving a file old way
- Given using dav path "remote.php/webdav"
- And As an "admin"
- And user "user0" exists
- When User "user0" moves file "/textfile0.txt" to "/FOLDER/textfile0.txt"
- Then the HTTP status code should be "201"
+ Background:
+ Given using api version "1"
+
+ Scenario: moving a file old way
+ Given using dav path "remote.php/webdav"
+ And As an "admin"
+ And user "user0" exists
+ When User "user0" moves file "/textfile0.txt" to "/FOLDER/textfile0.txt"
+ Then the HTTP status code should be "201"