summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-19 13:57:32 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-21 15:56:44 +0100
commit247b2ee0aa08664885aef2580b21c8b248b4424b (patch)
tree6afce1ae5d6be3f4eb330f45ba7bb993fddb3f70 /build
parent0c9f881e7d764ebf7c858ca894f3086091afb5c0 (diff)
downloadnextcloud-server-247b2ee0aa08664885aef2580b21c8b248b4424b.tar.gz
nextcloud-server-247b2ee0aa08664885aef2580b21c8b248b4424b.zip
Add intergration test for shared_with me and group shares
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/sharing-v1.feature13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index 020cb0e032b..dedf2c388fc 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -313,6 +313,19 @@ Feature: sharing
And the HTTP status code should be "200"
And last share_id is included in the answer
+ Scenario: Sharee can see the group share
+ Given As an "admin"
+ And user "user0" exists
+ And user "user1" exists
+ And group "group0" exists
+ And user "user1" belongs to group "group0"
+ And file "textfile0.txt" of user "user0" is shared with group "group0"
+ And As an "user1"
+ When sending "GET" to "/apps/files_sharing/api/v1/shares?shared_with_me=true"
+ Then the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And last share_id is included in the answer
+
Scenario: User is not allowed to reshare file
As an "admin"
Given user "user0" exists