Files
f7_talk/tests/integration/features/sharing-1/restore.feature
glb_adm 01acfa3b40
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
UPSTREAM BASELINE: nextcloud/spreed v22.0.12 (без изменений)
Источник: https://github.com/nextcloud/spreed/archive/refs/tags/v22.0.12.tar.gz
С этого коммита ветка официального Nextcloud Talk отрезана (решение владельца 2026-07-06).
Все дальнейшие изменения — только наши; версии релизов: 22.0.12-f7.N.
2026-07-06 14:07:50 +00:00

157 lines
7.3 KiB
Gherkin

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 |