UPSTREAM BASELINE: nextcloud/spreed v22.0.12 (без изменений)
Type checking / changes (push) Has been cancelled
Type checking / test (push) Has been cancelled
Type checking / typescript-summary (push) Has been cancelled
Node tests / changes (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / test-summary (push) Has been cancelled
Type checking / changes (push) Has been cancelled
Type checking / test (push) Has been cancelled
Type checking / typescript-summary (push) Has been cancelled
Node tests / changes (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / test-summary (push) Has been cancelled
Источник: https://github.com/nextcloud/spreed/archive/refs/tags/v22.0.12.tar.gz С этого коммита ветка официального Nextcloud Talk отрезана (решение владельца 2026-07-06). Все дальнейшие изменения — только наши; версии релизов: 22.0.12-f7.N.
This commit is contained in:
@@ -0,0 +1,806 @@
|
||||
Feature: create
|
||||
|
||||
Background:
|
||||
Given user "participant1" exists
|
||||
Given user "participant2" exists
|
||||
Given user "participant3" exists
|
||||
|
||||
Scenario: create share with an owned one-to-one room
|
||||
Given user "participant1" creates room "own one-to-one room" (v4)
|
||||
| roomType | 1 |
|
||||
| invite | participant2 |
|
||||
When user "participant1" shares "welcome.txt" with room "own one-to-one room"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | own one-to-one room |
|
||||
| share_with_displayname | participant2-displayname |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | own one-to-one room |
|
||||
| share_with_displayname | participant1-displayname |
|
||||
|
||||
Scenario: create share with a one-to-one room invited to
|
||||
Given user "participant2" creates room "one-to-one room invited to" (v4)
|
||||
| roomType | 1 |
|
||||
| invite | participant1 |
|
||||
And user "participant2" sends message "Message 1" to room "one-to-one room invited to" with 201
|
||||
When user "participant1" shares "welcome.txt" with room "one-to-one room invited to"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | one-to-one room invited to |
|
||||
| share_with_displayname | participant2-displayname |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | one-to-one room invited to |
|
||||
| share_with_displayname | participant1-displayname |
|
||||
|
||||
Scenario: create share with a one-to-one room not invited to
|
||||
Given user "participant2" creates room "one-to-one room not invited to" (v4)
|
||||
| roomType | 1 |
|
||||
| invite | participant3 |
|
||||
When user "participant1" shares "welcome.txt" with room "one-to-one room not invited to"
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant3" gets all received shares
|
||||
And the list of returned shares has 0 shares
|
||||
|
||||
Scenario: create share with an owned group room
|
||||
Given user "participant1" creates room "own group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "own group room" to "Own group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "own group room" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "own group room"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | own group room |
|
||||
| share_with_displayname | Own group room |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | own group room |
|
||||
| share_with_displayname | Own group room |
|
||||
|
||||
Scenario: create share with a group room invited to
|
||||
Given user "participant2" creates room "group room invited to" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant2" renames room "group room invited to" to "Group room invited to" with 200 (v4)
|
||||
And user "participant2" adds user "participant1" to room "group room invited to" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "group room invited to"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room invited to |
|
||||
| share_with_displayname | Group room invited to |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room invited to |
|
||||
| share_with_displayname | Group room invited to |
|
||||
|
||||
Scenario: create share with a group room not invited to
|
||||
Given user "participant2" creates room "group room not invited to" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
When user "participant1" shares "welcome.txt" with room "group room not invited to"
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 0 shares
|
||||
|
||||
Scenario: create share with a group room no longer invited to
|
||||
Given user "participant2" creates room "group room no longer invited to" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant2" adds user "participant1" to room "group room no longer invited to" with 200 (v4)
|
||||
And user "participant2" removes "participant1" from room "group room no longer invited to" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "group room no longer invited to"
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 0 shares
|
||||
|
||||
Scenario: create share with an owned public room
|
||||
Given user "participant1" creates room "own public room" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "own public room" to "Own public room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "own public room" with 200 (v4)
|
||||
And user "participant3" joins room "own public room" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "own public room"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | own public room |
|
||||
| share_with_displayname | Own public room |
|
||||
| token | A_TOKEN |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | own public room |
|
||||
| share_with_displayname | Own public room |
|
||||
| token | A_TOKEN |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | own public room |
|
||||
| share_with_displayname | Own public room |
|
||||
| token | A_TOKEN |
|
||||
|
||||
Scenario: create share with a public room invited to
|
||||
Given user "participant2" creates room "public room invited to" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant2" renames room "public room invited to" to "Public room invited to" with 200 (v4)
|
||||
And user "participant2" adds user "participant1" to room "public room invited to" with 200 (v4)
|
||||
And user "participant3" joins room "public room invited to" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "public room invited to"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | public room invited to |
|
||||
| share_with_displayname | Public room invited to |
|
||||
| token | A_TOKEN |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | public room invited to |
|
||||
| share_with_displayname | Public room invited to |
|
||||
| token | A_TOKEN |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | public room invited to |
|
||||
| share_with_displayname | Public room invited to |
|
||||
| token | A_TOKEN |
|
||||
|
||||
Scenario: create share with a public room self joined to
|
||||
Given user "participant2" creates room "public room self joined to" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant2" renames room "public room self joined to" to "Public room self joined to" with 200 (v4)
|
||||
And user "participant1" joins room "public room self joined to" with 200 (v4)
|
||||
And user "participant3" joins room "public room self joined to" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "public room self joined to"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | public room self joined to |
|
||||
| share_with_displayname | Public room self joined to |
|
||||
| token | A_TOKEN |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | public room self joined to |
|
||||
| share_with_displayname | Public room self joined to |
|
||||
| token | A_TOKEN |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | public room self joined to |
|
||||
| share_with_displayname | Public room self joined to |
|
||||
| token | A_TOKEN |
|
||||
|
||||
Scenario: create share with a public room not joined to
|
||||
Given user "participant2" creates room "public room not joined to" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
When user "participant1" shares "welcome.txt" with room "public room not joined to"
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 0 shares
|
||||
|
||||
Scenario: create share with a public room no longer joined to
|
||||
Given user "participant2" creates room "public room no longer joined to" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant1" joins room "public room no longer joined to" with 200 (v4)
|
||||
And user "participant1" leaves room "public room no longer joined to" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "public room no longer joined to"
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 0 shares
|
||||
|
||||
|
||||
|
||||
Scenario: create share with a room of a received share whose owner is in the room
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant2" shares "welcome.txt" with user "participant1" with OCS 100
|
||||
And user "participant1" accepts last share
|
||||
When user "participant1" shares "welcome (2).txt" with room "group room"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| uid_file_owner | participant2 |
|
||||
| displayname_file_owner | participant2-displayname |
|
||||
| path | /welcome (2).txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/welcome (2).txt |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome (2).txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| uid_file_owner | participant2 |
|
||||
| displayname_file_owner | participant2-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant2 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome (2).txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| uid_file_owner | participant2 |
|
||||
| displayname_file_owner | participant2-displayname |
|
||||
| path | /Talk/welcome (2).txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome (2).txt |
|
||||
| file_target | /Talk/welcome (2).txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
Scenario: create share with a room of a received share whose owner is not in the room
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant2" shares "welcome.txt" with user "participant1" with OCS 100
|
||||
And user "participant1" accepts last share
|
||||
When user "participant1" shares "welcome (2).txt" with room "group room"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| uid_file_owner | participant2 |
|
||||
| displayname_file_owner | participant2-displayname |
|
||||
| path | /welcome (2).txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/welcome (2).txt |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome (2).txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| uid_file_owner | participant2 |
|
||||
| displayname_file_owner | participant2-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant2 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome (2).txt |
|
||||
| share_with | private_conversation |
|
||||
| share_with_displayname | Private conversation |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| uid_file_owner | participant2 |
|
||||
| displayname_file_owner | participant2-displayname |
|
||||
| path | /Talk/welcome (2).txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome (2).txt |
|
||||
| file_target | /Talk/welcome (2).txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
Scenario: create share with a room of a received share without reshare permissions
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant2" shares "welcome.txt" with user "participant1"
|
||||
| permissions | 1 |
|
||||
And share is returned with
|
||||
| permissions | 1 |
|
||||
| share_type | 0 |
|
||||
And user "participant1" accepts last share
|
||||
When user "participant1" shares "welcome (2).txt" with room "group room"
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant1" gets all received shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| permissions | 1 |
|
||||
| share_type | 0 |
|
||||
And user "participant2" gets all shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| permissions | 1 |
|
||||
| share_type | 0 |
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant3" gets all received shares
|
||||
And the list of returned shares has 0 shares
|
||||
|
||||
|
||||
|
||||
Scenario: create share with an expiration date
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "group room"
|
||||
| expireDate | +3 days |
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
| expiration | +3 days |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
| expiration | +3 days |
|
||||
|
||||
Scenario: create share with an invalid expiration date
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "group room"
|
||||
| expireDate | invalid date |
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 0 shares
|
||||
|
||||
Scenario: create share with specific permissions
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "group room"
|
||||
| permissions | 1 |
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
| permissions | 1 |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
| permissions | 1 |
|
||||
|
||||
|
||||
|
||||
Scenario: create share again with another room
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
And user "participant1" creates room "another group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "another group room" to "Another group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "another group room" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "another group room"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | another group room |
|
||||
| share_with_displayname | Another group room |
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 2 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And share 1 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | another group room |
|
||||
| share_with_displayname | Another group room |
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant3" gets all received shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | another group room |
|
||||
| share_with_displayname | Another group room |
|
||||
|
||||
Scenario: create share again with same room
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
When user "participant1" shares "welcome.txt" with room "group room"
|
||||
Then the OCS status code should be "403"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
Scenario: create share again with same room by a sharee
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
When user "participant2" shares "Talk/welcome.txt" with room "group room"
|
||||
Then the OCS status code should be "403"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets all shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets all shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
|
||||
|
||||
Scenario: create share with a room that includes a user who already received that share through another room
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
And user "participant1" creates room "another group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "another group room" to "Another group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "another group room" with 200 (v4)
|
||||
When user "participant1" shares "welcome.txt" with room "another group room"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | another group room |
|
||||
| share_with_displayname | Another group room |
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 2 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And share 1 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | another group room |
|
||||
| share_with_displayname | Another group room |
|
||||
|
||||
Scenario: create share with a user who already received that share through a room
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
When user "participant1" shares "welcome.txt" with user "participant2"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /welcome.txt |
|
||||
| share_with | participant2 |
|
||||
| share_with_displayname | participant2-displayname |
|
||||
| share_type | 0 |
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 2 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And share 1 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | participant2 |
|
||||
| share_with_displayname | participant2-displayname |
|
||||
| share_type | 0 |
|
||||
|
||||
Scenario: create share with a room including a user who already received that share directly
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with user "participant2" with OCS 100
|
||||
And user "participant2" accepts last share
|
||||
When user "participant1" shares "welcome.txt" with room "group room"
|
||||
Then share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 2 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_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 | participant2 |
|
||||
| share_with_displayname | participant2-displayname |
|
||||
| share_type | 0 |
|
||||
And share 1 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_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 | group room |
|
||||
| share_with_displayname | Group room |
|
||||
@@ -0,0 +1,390 @@
|
||||
Feature: delete
|
||||
|
||||
Background:
|
||||
Given user "participant1" exists
|
||||
Given user "participant2" exists
|
||||
Given user "participant3" exists
|
||||
|
||||
Scenario: delete share with an owned one-to-one room
|
||||
Given user "participant1" creates room "own one-to-one room" (v4)
|
||||
| roomType | 1 |
|
||||
| invite | participant2 |
|
||||
And user "participant1" shares "welcome.txt" with room "own one-to-one room" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant2" gets last share
|
||||
And the OCS status code should be "404"
|
||||
|
||||
Scenario: delete share with a one-to-one room invited to
|
||||
Given user "participant2" creates room "one-to-one room invited to" (v4)
|
||||
| roomType | 1 |
|
||||
| invite | participant1 |
|
||||
And user "participant2" sends message "Message 1" to room "one-to-one room invited to" with 201
|
||||
And user "participant1" shares "welcome.txt" with room "one-to-one room invited to" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant2" gets last share
|
||||
And the OCS status code should be "404"
|
||||
|
||||
Scenario: delete share with an owned group room
|
||||
Given user "participant1" creates room "own group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" adds user "participant2" to room "own group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "own group room" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant2" gets last share
|
||||
And the OCS status code should be "404"
|
||||
|
||||
Scenario: delete share with a group room invited to
|
||||
Given user "participant2" creates room "group room invited to" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant2" adds user "participant1" to room "group room invited to" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room invited to" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant2" gets last share
|
||||
And the OCS status code should be "404"
|
||||
|
||||
Scenario: delete share with an owned public room
|
||||
Given user "participant1" creates room "own public room" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant1" adds user "participant2" to room "own public room" with 200 (v4)
|
||||
And user "participant3" joins room "own public room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "own public room" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant2" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant3" gets last share
|
||||
And the OCS status code should be "404"
|
||||
|
||||
Scenario: delete share with a public room invited to
|
||||
Given user "participant2" creates room "public room invited to" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant2" adds user "participant1" to room "public room invited to" with 200 (v4)
|
||||
And user "participant3" joins room "public room invited to" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "public room invited to" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant2" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant3" gets last share
|
||||
And the OCS status code should be "404"
|
||||
|
||||
Scenario: delete share with a public room self joined to
|
||||
Given user "participant2" creates room "public room self joined to" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant1" joins room "public room self joined to" with 200 (v4)
|
||||
And user "participant3" joins room "public room self joined to" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "public room self joined to" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant1" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant2" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant3" gets last share
|
||||
And the OCS status code should be "404"
|
||||
|
||||
|
||||
|
||||
Scenario: delete (unknown) share with a one-to-one room not invited to
|
||||
Given user "participant2" creates room "one-to-one room not invited to" (v4)
|
||||
| roomType | 1 |
|
||||
| invite | participant3 |
|
||||
And user "participant2" shares "welcome.txt" with room "one-to-one room not invited to" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant2 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | one-to-one room not invited to |
|
||||
| share_with_displayname | participant3-displayname |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | one-to-one room not invited to |
|
||||
| share_with_displayname | participant2-displayname |
|
||||
|
||||
Scenario: delete (unknown) share with a group room not invited to
|
||||
Given user "participant2" creates room "group room not invited to" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant2" renames room "group room not invited to" to "Group room not invited to" with 200 (v4)
|
||||
And user "participant2" adds user "participant3" to room "group room not invited to" with 200 (v4)
|
||||
And user "participant2" shares "welcome.txt" with room "group room not invited to" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant2 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room not invited to |
|
||||
| share_with_displayname | Group room not invited to |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room not invited to |
|
||||
| share_with_displayname | Group room not invited to |
|
||||
|
||||
Scenario: delete (unknown) share with a public room not joined to
|
||||
Given user "participant2" creates room "public room not joined to" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant2" renames room "public room not joined to" to "Public room not joined to" with 200 (v4)
|
||||
And user "participant2" adds user "participant3" to room "public room not joined to" with 200 (v4)
|
||||
And user "participant2" shares "welcome.txt" with room "public room not joined to" with OCS 100
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "404"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant2 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | public room not joined to |
|
||||
| share_with_displayname | Public room not joined to |
|
||||
| token | A_TOKEN |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | public room not joined to |
|
||||
| share_with_displayname | Public room not joined to |
|
||||
| token | A_TOKEN |
|
||||
|
||||
|
||||
|
||||
Scenario: delete share with a user who also received that share through a room
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
And user "participant1" shares "welcome.txt" with user "participant2" with OCS 100
|
||||
And user "participant2" accepts last share
|
||||
When user "participant1" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
Scenario: delete share with a room including a user who also received that share directly
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" 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 "participant1" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_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 | participant2 |
|
||||
| share_with_displayname | participant2-displayname |
|
||||
| share_type | 0 |
|
||||
|
||||
|
||||
|
||||
Scenario: delete received share
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
When user "participant2" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant1" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
|
||||
|
||||
Scenario: delete share received directly and through a room
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" 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 "participant2" deletes last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets last share
|
||||
And the OCS status code should be "404"
|
||||
And user "participant1" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets all received shares
|
||||
And the list of returned shares has 1 shares
|
||||
And share 0 is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_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 | participant2 |
|
||||
| share_with_displayname | participant2-displayname |
|
||||
| share_type | 0 |
|
||||
|
||||
Scenario: Delete file in app Files and don't receive the deleted file when list the shared files with "file" format
|
||||
Given user "participant1" creates room "public room" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant1" shares "welcome.txt" with room "public room" with OCS 100
|
||||
And user "participant1" sees the following messages in room "public room" with 200
|
||||
| room | actorType | actorId | actorDisplayName | message | messageParameters |
|
||||
| public room | users | participant1 | participant1-displayname | {file} | "IGNORE" |
|
||||
And user "participant1" sees the following shared summarized overview in room "public room" with 200
|
||||
| audio | 0 |
|
||||
| deckcard | 0 |
|
||||
| file | 1 |
|
||||
| location | 0 |
|
||||
| media | 0 |
|
||||
| other | 0 |
|
||||
| poll | 0 |
|
||||
| voice | 0 |
|
||||
| recording | 0 |
|
||||
When user "participant1" deletes file "welcome.txt"
|
||||
Then user "participant1" sees the following shared file in room "public room" with 200
|
||||
And user "participant1" sees the following shared summarized overview in room "public room" with 200
|
||||
| audio | 0 |
|
||||
| deckcard | 0 |
|
||||
| file | 0 |
|
||||
| location | 0 |
|
||||
| media | 0 |
|
||||
| other | 0 |
|
||||
| poll | 0 |
|
||||
| voice | 0 |
|
||||
| recording | 0 |
|
||||
And user "participant1" sees the following messages in room "public room" with 200
|
||||
| room | actorType | actorId | actorDisplayName | message | messageParameters |
|
||||
| public room | users | participant1 | participant1-displayname | *You shared a file which is no longer available* | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} |
|
||||
@@ -0,0 +1,271 @@
|
||||
Feature: move
|
||||
|
||||
Background:
|
||||
Given user "participant1" exists
|
||||
Given user "participant2" exists
|
||||
Given user "participant3" exists
|
||||
Given user "participant4" exists
|
||||
|
||||
Scenario: move share to another folder
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
And user "participant1" creates folder "/test"
|
||||
When user "participant1" moves file "/welcome.txt" to "/test/renamed.txt" with 201
|
||||
Then user "participant1" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /test/renamed.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
# # When an own share is moved into a received shared folder the ownership of
|
||||
# # the share is handed over to the folder owner.
|
||||
# Scenario: move share to received shared folder from a user in the room
|
||||
# Given user "participant1" creates room "group room" (v4)
|
||||
# | roomType | 2 |
|
||||
# | roomName | room |
|
||||
# And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
# And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
# And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
# And user "participant3" creates folder "/test"
|
||||
# And user "participant3" shares "/test" with user "participant1" with OCS 100
|
||||
# And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
# When user "participant1" moves file "/welcome.txt" to "/test/renamed.txt" with 201
|
||||
# Then user "participant1" gets last share
|
||||
# And share is returned with
|
||||
# | uid_owner | participant1 |
|
||||
# | displayname_owner | participant1-displayname |
|
||||
# | uid_file_owner | participant3 |
|
||||
# | displayname_file_owner | participant3-displayname |
|
||||
# | path | /test/renamed.txt |
|
||||
# | item_type | file |
|
||||
# | mimetype | text/plain |
|
||||
# | storage_id | shared::/test |
|
||||
# | file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
# | share_with | group room |
|
||||
# | share_with_displayname | Group room |
|
||||
# And user "participant2" gets last share
|
||||
# And share is returned with
|
||||
# | uid_owner | participant1 |
|
||||
# | displayname_owner | participant1-displayname |
|
||||
# | uid_file_owner | participant3 |
|
||||
# | displayname_file_owner | participant3-displayname |
|
||||
# | path | /Talk/welcome.txt |
|
||||
# | item_type | file |
|
||||
# | mimetype | text/plain |
|
||||
# | storage_id | shared::/welcome (2).txt |
|
||||
# | file_target | /welcome (2).txt |
|
||||
# | share_with | group room |
|
||||
# | share_with_displayname | Group room |
|
||||
# And user "participant3" gets last share
|
||||
# And share is returned with
|
||||
# | uid_owner | participant1 |
|
||||
# | displayname_owner | participant1-displayname |
|
||||
# | uid_file_owner | participant3 |
|
||||
# | displayname_file_owner | participant3-displayname |
|
||||
# | path | /test/renamed.txt |
|
||||
# | item_type | file |
|
||||
# | mimetype | text/plain |
|
||||
# | storage_id | home::participant3 |
|
||||
# | file_target | /welcome (2).txt |
|
||||
# | share_with | group room |
|
||||
# | share_with_displayname | Group room |
|
||||
|
||||
# Scenario: move share to received shared folder from a user not in the room
|
||||
# Given user "participant1" creates room "group room" (v4)
|
||||
# | roomType | 2 |
|
||||
# | roomName | room |
|
||||
# And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
# And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
# And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
# And user "participant4" creates folder "/test"
|
||||
# And user "participant4" shares "/test" with user "participant1" with OCS 100
|
||||
# And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
# When user "participant1" moves file "/welcome.txt" to "/test/renamed.txt" with 201
|
||||
# Then user "participant1" gets last share
|
||||
# And share is returned with
|
||||
# | uid_owner | participant1 |
|
||||
# | displayname_owner | participant1-displayname |
|
||||
# | uid_file_owner | participant4 |
|
||||
# | displayname_file_owner | participant4-displayname |
|
||||
# | path | /test/renamed.txt |
|
||||
# | item_type | file |
|
||||
# | mimetype | text/plain |
|
||||
# | storage_id | shared::/test |
|
||||
# | file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
# | share_with | group room |
|
||||
# | share_with_displayname | Group room |
|
||||
# And user "participant2" gets last share
|
||||
# And share is returned with
|
||||
# | uid_owner | participant1 |
|
||||
# | displayname_owner | participant1-displayname |
|
||||
# | uid_file_owner | participant4 |
|
||||
# | displayname_file_owner | participant4-displayname |
|
||||
# | path | /Talk/welcome.txt |
|
||||
# | item_type | file |
|
||||
# | mimetype | text/plain |
|
||||
# | storage_id | shared::/welcome (2).txt |
|
||||
# | file_target | /welcome (2).txt |
|
||||
# | share_with | group room |
|
||||
# | share_with_displayname | Group room |
|
||||
# And user "participant3" gets last share
|
||||
# And share is returned with
|
||||
# | uid_owner | participant1 |
|
||||
# | displayname_owner | participant1-displayname |
|
||||
# | uid_file_owner | participant4 |
|
||||
# | displayname_file_owner | participant4-displayname |
|
||||
# | path | /Talk/welcome.txt |
|
||||
# | item_type | file |
|
||||
# | mimetype | text/plain |
|
||||
# | storage_id | shared::/welcome (2).txt |
|
||||
# | file_target | /welcome (2).txt |
|
||||
# | share_with | group room |
|
||||
# | share_with_displayname | Group room |
|
||||
|
||||
# Scenario: move share to received shared folder which is also a received shared folder
|
||||
# Given user "participant1" creates room "group room" (v4)
|
||||
# | roomType | 2 |
|
||||
# | roomName | room |
|
||||
# And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
# And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
# And user "participant3" creates folder "/test"
|
||||
# And user "participant3" shares "/test" with user "participant4" with OCS 100
|
||||
# And user "participant4" shares "/test" with user "participant1" with OCS 100
|
||||
# And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
# When user "participant1" moves file "/welcome.txt" to "/test/renamed.txt" with 201
|
||||
# Then user "participant1" gets last share
|
||||
# And share is returned with
|
||||
# | uid_owner | participant1 |
|
||||
# | displayname_owner | participant1-displayname |
|
||||
# | uid_file_owner | participant3 |
|
||||
# | displayname_file_owner | participant3-displayname |
|
||||
# | path | /test/renamed.txt |
|
||||
# | item_type | file |
|
||||
# | mimetype | text/plain |
|
||||
# | storage_id | shared::/test |
|
||||
# | file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
# | share_with | group room |
|
||||
# | share_with_displayname | Group room |
|
||||
# And user "participant2" gets last share
|
||||
# And share is returned with
|
||||
# | uid_owner | participant1 |
|
||||
# | displayname_owner | participant1-displayname |
|
||||
# | uid_file_owner | participant3 |
|
||||
# | displayname_file_owner | participant3-displayname |
|
||||
# | path | /Talk/welcome.txt |
|
||||
# | item_type | file |
|
||||
# | mimetype | text/plain |
|
||||
# | storage_id | shared::/welcome (2).txt |
|
||||
# | file_target | /welcome (2).txt |
|
||||
# | share_with | group room |
|
||||
# | share_with_displayname | Group room |
|
||||
# And user "participant3" gets last share
|
||||
# And share is returned with
|
||||
# | uid_owner | participant1 |
|
||||
# | displayname_owner | participant1-displayname |
|
||||
# | uid_file_owner | participant3 |
|
||||
# | displayname_file_owner | participant3-displayname |
|
||||
# | path | /test/renamed.txt |
|
||||
# | item_type | file |
|
||||
# | mimetype | text/plain |
|
||||
# | storage_id | home::participant3 |
|
||||
# | file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
# | share_with | group room |
|
||||
# | share_with_displayname | Group room |
|
||||
# And user "participant4" gets last share
|
||||
# Then the OCS status code should be "404"
|
||||
# And the HTTP status code should be "200"
|
||||
|
||||
Scenario: move received share to another folder
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
And user "participant2" creates folder "/test"
|
||||
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 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /test/renamed.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/test/renamed.txt |
|
||||
| file_target | /test/renamed.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
|
||||
|
||||
# Received shares can not be moved into other shares (general limitation of
|
||||
# the sharing system, not related to room shares).
|
||||
Scenario: move received share to shared folder
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant3" creates folder "/test"
|
||||
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 "/Talk/welcome.txt" to "/test/renamed.txt"
|
||||
Then the HTTP status code should be "403"
|
||||
@@ -0,0 +1,156 @@
|
||||
Feature: delete
|
||||
|
||||
Background:
|
||||
Given user "participant1" exists
|
||||
Given user "participant2" exists
|
||||
Given user "participant3" exists
|
||||
|
||||
Scenario: restore deleted share
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
And user "participant2" deletes last share
|
||||
When user "participant2" restores last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets deleted shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant1" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
Scenario: restore share deleted after moving it
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
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"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets deleted shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/renamed.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| 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
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
Scenario: restore deleted share after owner updated it
|
||||
Given user "participant1" creates room "group room" (v4)
|
||||
| roomType | 2 |
|
||||
| roomName | room |
|
||||
And user "participant1" renames room "group room" to "Group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
|
||||
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
And user "participant2" deletes last share
|
||||
And user "participant1" updates last share with
|
||||
| permissions | 1 |
|
||||
When user "participant2" restores last share
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And user "participant2" gets deleted shares
|
||||
And the list of returned shares has 0 shares
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
| permissions | 1 |
|
||||
And user "participant1" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant1 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
| permissions | 1 |
|
||||
And user "participant3" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant1 |
|
||||
| displayname_owner | participant1-displayname |
|
||||
| path | /Talk/welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Talk/welcome.txt |
|
||||
| file_target | /Talk/welcome.txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
| permissions | 1 |
|
||||
Reference in New Issue
Block a user