Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions tests/integration/features/sharing/get.feature
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Feature: get
And user "participant1" renames room "group room" to "Group room" with 200
And user "participant1" adds "participant2" to room "group room" with 200
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
And user "participant2" moves file "/welcome (2).txt" to "/renamed.txt" with 201
And user "participant2" moves file "/Talk/welcome.txt" to "/Talk/renamed.txt" with 201
And user "participant1" updates last share with
| expireDate | -3 days |
And share is returned with
Expand Down Expand Up @@ -1149,7 +1149,7 @@ Feature: get
| roomName | room |
And user "participant1" adds "participant2" to room "group room" with 200
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
When user "participant2" gets the share-type DAV property for "/welcome (2).txt"
When user "participant2" gets the share-type DAV property for "Talk/welcome.txt"
Then the response contains a share-types DAV property with

Scenario: get DAV properties for a room share reshared with a user
Expand Down Expand Up @@ -1269,10 +1269,12 @@ Feature: get
And user "participant2" gets the DAV properties for "/"
And the list of returned files for "participant2" is
| / |
| /Talk/ |
| /welcome.txt |
| /welcome%20(2).txt |


And user "participant2" gets the DAV properties for "/Talk"
And the list of returned files for "participant2" is
| /Talk/ |
| /Talk/welcome.txt |

Scenario: get files after deleting a share
Given user "participant1" creates room "group room"
Expand Down
14 changes: 7 additions & 7 deletions tests/integration/features/sharing/hooks.feature
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ Feature: hooks
And user "participant1" adds "participant2" to room "group room" with 200
And user "participant1" adds "participant3" to room "group room" with 200
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
And user "participant2" moves file "welcome (2).txt" to "renamed.txt"
And user "participant3" moves file "welcome (2).txt" to "renamed too.txt"
And user "participant2" moves file "Talk/welcome.txt" to "Talk/renamed.txt"
And user "participant3" moves file "Talk/welcome.txt" to "Talk/renamed too.txt"
When user "participant1" removes "participant2" from room "group room" with 200
Then user "participant1" gets last share
And share is returned with
Expand All @@ -392,11 +392,11 @@ Feature: hooks
And share is returned with
| uid_owner | participant1 |
| displayname_owner | participant1-displayname |
| path | /renamed too.txt |
| path | /Talk/renamed too.txt |
| item_type | file |
| mimetype | text/plain |
| storage_id | shared::/renamed too.txt |
| file_target | /renamed too.txt |
| storage_id | shared::/Talk/renamed too.txt |
| file_target | /Talk/renamed too.txt |
| share_with | group room |
| share_with_displayname | Group room |

Expand Down Expand Up @@ -819,8 +819,8 @@ Feature: hooks
| roomName | room |
And user "participant1" adds "participant2" to room "group room" with 200
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
And user "participant2" moves file "welcome (2).txt" to "renamed.txt"
And user "participant2" shares "renamed.txt" with user "participant3" with OCS 100
And user "participant2" moves file "Talk/welcome.txt" to "Talk/renamed.txt"
And user "participant2" shares "Talk/renamed.txt" with user "participant3" with OCS 100
And user "participant3" accepts last share
When user "participant1" deletes room "group room" with 200
Then user "participant1" gets all shares
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/features/sharing/move.feature
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Feature: move
And user "participant1" adds "participant3" to room "group room" with 200
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
And user "participant2" creates folder "/test"
When user "participant2" moves file "/welcome (2).txt" to "/test/renamed.txt" with 201
When user "participant2" moves file "Talk/welcome.txt" to "test/renamed.txt" with 201
Then user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |
Expand Down Expand Up @@ -267,5 +267,5 @@ Feature: move
And user "participant3" shares "/test" with user "participant2" with OCS 100
And user "participant2" accepts last share
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
When user "participant3" moves file "/welcome (2).txt" to "/test/renamed.txt"
When user "participant3" moves file "/Talk/welcome.txt" to "/test/renamed.txt"
Then the HTTP status code should be "403"
8 changes: 4 additions & 4 deletions tests/integration/features/sharing/restore.feature
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Feature: delete
And user "participant1" adds "participant2" to room "group room" with 200
And user "participant1" adds "participant3" to room "group room" with 200
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
And user "participant2" moves file "/welcome (2).txt" to "/renamed.txt" with 201
And user "participant2" moves file "/Talk/welcome.txt" to "/Talk/renamed.txt" with 201
And user "participant2" deletes last share
When user "participant2" restores last share
Then the OCS status code should be "100"
Expand All @@ -72,11 +72,11 @@ Feature: delete
And share is returned with
| uid_owner | participant1 |
| displayname_owner | participant1-displayname |
| path | /renamed.txt |
| path | /Talk/renamed.txt |
| item_type | file |
| mimetype | text/plain |
| storage_id | shared::/renamed.txt |
| file_target | /renamed.txt |
| storage_id | shared::/Talk/renamed.txt |
| file_target | /Talk/renamed.txt |
| share_with | group room |
| share_with_displayname | Group room |
And user "participant1" gets last share
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/features/sharing/update.feature
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ Feature: update
And user "participant1" adds "participant3" to room "group room invited to" with 200
And user "participant1" shares "welcome.txt" with room "group room invited to" with OCS 100
And user "participant2" creates folder "/test"
And user "participant2" moves file "/welcome (2).txt" to "/test/renamed.txt" with 201
And user "participant2" moves file "/Talk/welcome.txt" to "/test/renamed.txt" with 201
When user "participant2" updates last share with
| permissions | 1 |
| expireDate | +3 days |
Expand Down Expand Up @@ -947,7 +947,7 @@ Feature: update
And user "participant1" adds "participant3" to room "group room invited to" with 200
And user "participant1" shares "welcome.txt" with room "group room invited to" with OCS 100
And user "participant2" creates folder "/test"
And user "participant2" moves file "/welcome (2).txt" to "/test/renamed.txt" with 201
And user "participant2" moves file "/Talk/welcome.txt" to "/test/renamed.txt" with 201
And user "participant1" removes "participant2" from room "group room invited to" with 200
When user "participant2" updates last share with
| permissions | 1 |
Expand Down