aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-07-05 11:08:19 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-08-31 11:40:14 +0200
commite8a014be34cec4085107789830321f4231fdea8c (patch)
treeacd51d658edacaac618623eff598f33be43b2aef /build
parentc4bfdb3cabc023e1e50f16b08a901bdd051dcd7d (diff)
downloadnextcloud-server-e8a014be34cec4085107789830321f4231fdea8c.tar.gz
nextcloud-server-e8a014be34cec4085107789830321f4231fdea8c.zip
Add integration test for sharing with group, then user in group
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 500dad32dc1..de9e709a3a5 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -41,6 +41,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"