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 Bertolín <sbertolin@solidgear.es>2016-08-01 18:49:30 +0300
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-08-01 18:49:30 +0300
commitdb8549969707a6337a94dd39f40dcbb679330feb (patch)
treef1327d0e94685145d0be865a28ca2fbcde109577 /build
parent62235e511dc8afd1b397c6acb4f213de4f96f8e2 (diff)
Add integration test for sharing with group, then user in group (#25672)
Add integration test for the use case where a group share exists and then the same owner creates a direct share to a user in that group.
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/sharing-v1.feature15
1 files changed, 15 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index b7d32051c69..0faf5f516d3 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -26,6 +26,21 @@ Feature: sharing
Then the OCS status code should be "100"
And the HTTP status code should be "200"
+ Scenario: Creating a new share with user who already received a share through their group
+ Given As an "admin"
+ And user "user0" exists
+ And user "user1" exists
+ And group "sharing-group" exists
+ And user "user1" belongs to group "sharing-group"
+ And file "welcome.txt" of user "user0" is shared with group "sharing-group"
+ And As an "user0"
+ Then sending "POST" to "/apps/files_sharing/api/v1/shares" with
+ | path | welcome.txt |
+ | shareWith | user1 |
+ | shareType | 0 |
+ Then the OCS status code should be "100"
+ And the HTTP status code should be "200"
+
Scenario: Creating a new public share
Given user "user0" exists
And As an "user0"