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
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-06-28 14:36:30 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-06-29 09:20:19 +0300
commitd5237778432b3965508aacd07314ca2919291eac (patch)
treef0e303b1fddd04c571f9b02262521b80f0735c16 /build/integration
parent6cb2cb33ac30226b6165e1da02bb6b6de41e2bbe (diff)
Extend integration tests to get the info of a group share as a sharee
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build/integration')
-rw-r--r--build/integration/features/sharing-v1-part2.feature73
1 files changed, 73 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1-part2.feature b/build/integration/features/sharing-v1-part2.feature
index 216b173cd10..e90d44d1a61 100644
--- a/build/integration/features/sharing-v1-part2.feature
+++ b/build/integration/features/sharing-v1-part2.feature
@@ -62,6 +62,59 @@ Feature: sharing
| displayname_owner | user0 |
| mimetype | text/plain |
+ Scenario: getting share info of a group share
+ Given user "user0" exists
+ And user "user1" exists
+ And group "group1" exists
+ And user "user1" belongs to group "group1"
+ And file "textfile0.txt" of user "user0" is shared with group "group1"
+ And As an "user0"
+ When Getting info of last share
+ Then the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And Share fields of last share match with
+ | id | A_NUMBER |
+ | item_type | file |
+ | item_source | A_NUMBER |
+ | share_type | 1 |
+ | share_with | group1 |
+ | file_source | A_NUMBER |
+ | file_target | /textfile0.txt |
+ | path | /textfile0.txt |
+ | permissions | 19 |
+ | stime | A_NUMBER |
+ | storage | A_NUMBER |
+ | mail_send | 0 |
+ | uid_owner | user0 |
+ | storage_id | home::user0 |
+ | file_parent | A_NUMBER |
+ | share_with_displayname | group1 |
+ | displayname_owner | user0 |
+ | mimetype | text/plain |
+ And As an "user1"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And Share fields of last share match with
+ | id | A_NUMBER |
+ | item_type | file |
+ | item_source | A_NUMBER |
+ | share_type | 1 |
+ | share_with | group1 |
+ | file_source | A_NUMBER |
+ | file_target | /textfile0 (2).txt |
+ | path | /textfile0 (2).txt |
+ | permissions | 19 |
+ | stime | A_NUMBER |
+ | storage | A_NUMBER |
+ | mail_send | 0 |
+ | uid_owner | user0 |
+ | storage_id | shared::/textfile0 (2).txt |
+ | file_parent | A_NUMBER |
+ | share_with_displayname | group1 |
+ | displayname_owner | user0 |
+ | mimetype | text/plain |
+
Scenario: keep group permissions in sync
Given As an "admin"
Given user "user0" exists
@@ -92,6 +145,26 @@ Feature: sharing
| file_parent | A_NUMBER |
| displayname_owner | user0 |
| mimetype | text/plain |
+ And As an "user1"
+ And Getting info of last share
+ And the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And Share fields of last share match with
+ | id | A_NUMBER |
+ | item_type | file |
+ | item_source | A_NUMBER |
+ | share_type | 1 |
+ | file_source | A_NUMBER |
+ | file_target | /FOLDER/textfile0.txt |
+ | permissions | 1 |
+ | stime | A_NUMBER |
+ | storage | A_NUMBER |
+ | mail_send | 0 |
+ | uid_owner | user0 |
+ | storage_id | shared::/FOLDER/textfile0.txt |
+ | file_parent | A_NUMBER |
+ | displayname_owner | user0 |
+ | mimetype | text/plain |
Scenario: Sharee can see the share
Given user "user0" exists