diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-10-07 02:07:04 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-10-07 02:07:04 +0300 |
commit | 9aee59cd1c25ee6c43a4d2a5ab30863720869fd1 (patch) | |
tree | 2a125012b697ed4b1032949c0605d4cae9e89836 /tests | |
parent | 941ca99a868971f06ef8678b57520304cd90d277 (diff) |
Adjust integration test to changes in access to shares in server
Now a user with access to a file is able to get any of its shares.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/sharing/hooks.feature | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/integration/features/sharing/hooks.feature b/tests/integration/features/sharing/hooks.feature index cc8dc1c43..340ed4a74 100644 --- a/tests/integration/features/sharing/hooks.feature +++ b/tests/integration/features/sharing/hooks.feature @@ -1018,8 +1018,19 @@ Feature: hooks | share_with | group room invited to | | share_with_displayname | Group room invited to | And user "participant3" gets last share - And the OCS status code should be "404" - And the HTTP status code should be "200" + And share is returned with + | uid_owner | participant2 | + | displayname_owner | participant2 | + | uid_file_owner | participant1 | + | displayname_file_owner | participant1-displayname | + | path | /welcome (2).txt | + | item_type | file | + | mimetype | text/plain | + | storage_id | shared::/welcome (2).txt | + | file_target | /welcome (2).txt | + | share_with | participant4 | + | share_with_displayname | participant4-displayname | + | share_type | 0 | And user "participant3" gets all received shares And the list of returned shares has 1 shares And share 0 is returned with |