summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-29 15:28:28 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-29 15:36:37 +0100
commitd8114d6ce691103d64dc731e2450b81ab004da88 (patch)
tree8bae18e963628838d22c0d3f6550db2e3ab34c49 /build
parenta24e7f655885b5047e73036acb2f1706803a2b65 (diff)
downloadnextcloud-server-d8114d6ce691103d64dc731e2450b81ab004da88.tar.gz
nextcloud-server-d8114d6ce691103d64dc731e2450b81ab004da88.zip
Add intergration test
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/sharing-v1.feature22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index dedf2c388fc..bdc1a4224d8 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -313,6 +313,28 @@ Feature: sharing
And the HTTP status code should be "200"
And last share_id is included in the answer
+ Scenario: Sharee can see the filtered share
+ Given user "user0" exists
+ And user "user1" exists
+ And file "textfile0.txt" of user "user0" is shared with user "user1"
+ And file "textfile1.txt" of user "user0" is shared with user "user1"
+ And As an "user1"
+ When sending "GET" to "/apps/files_sharing/api/v1/shares?shared_with_me=true&path=textfile1 (2).txt"
+ 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: Sharee can't see the share that is filtered out
+ Given user "user0" exists
+ And user "user1" exists
+ And file "textfile0.txt" of user "user0" is shared with user "user1"
+ And file "textfile1.txt" of user "user0" is shared with user "user1"
+ And As an "user1"
+ When sending "GET" to "/apps/files_sharing/api/v1/shares?shared_with_me=true&path=textfile0 (2).txt"
+ Then the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And last share_id is not included in the answer
+
Scenario: Sharee can see the group share
Given As an "admin"
And user "user0" exists