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,144 @@
|
||||
Feature: transfer-ownership
|
||||
|
||||
Background:
|
||||
Given user "participant1" exists
|
||||
Given user "participant2" exists
|
||||
Given user "participant3" exists
|
||||
|
||||
Scenario: transfer ownership of a file shared with a room to 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 "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
When transfering ownership from "participant1" to "participant2"
|
||||
Then user "participant1" 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 |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| path | REGEXP /\/Transferred from participant1-displayname on .*\/welcome.txt/ |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant2 |
|
||||
| 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 | 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 |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
Scenario: transfer ownership of a file reshared with a room to 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" shares "welcome.txt" with user "participant1" with OCS 100
|
||||
And user "participant1" accepts last share
|
||||
And user "participant1" shares "welcome (2).txt" with room "group room" with OCS 100
|
||||
When transfering ownership from "participant1" to "participant2"
|
||||
Then user "participant1" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| uid_file_owner | participant3 |
|
||||
| displayname_file_owner | participant3-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 |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| uid_file_owner | participant3 |
|
||||
| displayname_file_owner | participant3-displayname |
|
||||
| path | /Transferred from participant1-displayname on {{DATE AND TIME}}/welcome (2).txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | shared::/Transferred from participant1-displayname on {{DATE AND TIME}}/welcome (2).txt |
|
||||
| file_target | /Talk/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 | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| uid_file_owner | participant3 |
|
||||
| displayname_file_owner | participant3-displayname |
|
||||
| path | /welcome.txt |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant3 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome (2).txt |
|
||||
| share_with | group room |
|
||||
| share_with_displayname | Group room |
|
||||
|
||||
# This is a special case in which even if the (now) sharer is not in a room
|
||||
# the room share is valid and other participants can access that share.
|
||||
Scenario: transfer ownership of a file shared with a room to 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 "participant3" to room "group room" with 200 (v4)
|
||||
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
|
||||
When transfering ownership from "participant1" to "participant2"
|
||||
Then user "participant1" 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 |
|
||||
| share_with_displayname | Group room |
|
||||
And user "participant2" gets last share
|
||||
And share is returned with
|
||||
| uid_owner | participant2 |
|
||||
| displayname_owner | participant2-displayname |
|
||||
| path | REGEXP /\/Transferred from participant1-displayname on .*\/welcome.txt/ |
|
||||
| item_type | file |
|
||||
| mimetype | text/plain |
|
||||
| storage_id | home::participant2 |
|
||||
| file_target | /{TALK_PLACEHOLDER}/welcome.txt |
|
||||
| share_with | private_conversation |
|
||||
| share_with_displayname | Private conversation |
|
||||
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 |
|
||||
| share_with_displayname | Group room |
|
||||
Reference in New Issue
Block a user