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,98 @@
|
||||
Feature: conversation/delete-room
|
||||
Background:
|
||||
Given user "participant1" exists
|
||||
Given user "participant2" exists
|
||||
Given user "participant3" exists
|
||||
|
||||
Scenario: Owner deletes
|
||||
Given signaling server is started
|
||||
Given user "participant1" creates room "room" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
Then user "participant1" is participant of the following rooms (v4)
|
||||
| id | type | participantType |
|
||||
| room | 3 | 1 |
|
||||
And user "participant2" is not participant of room "room" (v4)
|
||||
And user "participant3" is not participant of room "room" (v4)
|
||||
And reset signaling server requests
|
||||
When user "participant1" deletes room "room" with 200 (v4)
|
||||
Then signaling server received the following requests
|
||||
| token | data |
|
||||
| room | {"type":"delete","delete":{"userids":["participant1"]}} |
|
||||
Then user "participant1" is not participant of room "room" (v4)
|
||||
|
||||
Scenario: Moderator deletes
|
||||
Given user "participant1" creates room "room" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant1" adds user "participant2" to room "room" with 200 (v4)
|
||||
And user "participant1" promotes "participant2" in room "room" with 200 (v4)
|
||||
And user "participant2" is participant of the following rooms (v4)
|
||||
| id | type | participantType |
|
||||
| room | 3 | 2 |
|
||||
And user "participant1" is participant of room "room" (v4)
|
||||
And user "participant2" is participant of room "room" (v4)
|
||||
When user "participant2" deletes room "room" with 200 (v4)
|
||||
Then user "participant1" is not participant of room "room" (v4)
|
||||
And user "participant2" is not participant of room "room" (v4)
|
||||
|
||||
Scenario: User deletes
|
||||
Given user "participant1" creates room "room" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant1" adds user "participant2" to room "room" with 200 (v4)
|
||||
And user "participant2" is participant of the following rooms (v4)
|
||||
| id | type | participantType |
|
||||
| room | 3 | 3 |
|
||||
And user "participant1" is participant of room "room" (v4)
|
||||
And user "participant2" is participant of room "room" (v4)
|
||||
When user "participant2" deletes room "room" with 403 (v4)
|
||||
Then user "participant1" is participant of room "room" (v4)
|
||||
And user "participant2" is participant of room "room" (v4)
|
||||
|
||||
Scenario: Stranger deletes
|
||||
Given user "participant1" creates room "room" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
And user "participant1" is participant of room "room" (v4)
|
||||
And user "participant2" is not participant of room "room" (v4)
|
||||
When user "participant2" deletes room "room" with 404 (v4)
|
||||
Then user "participant1" is participant of room "room" (v4)
|
||||
And user "participant2" is not participant of room "room" (v4)
|
||||
|
||||
Scenario: Automatic retention of a past event conversation
|
||||
Given user "participant1" creates room "room" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
| objectType | event |
|
||||
# 100 days in the past
|
||||
| objectId | -8640000#-8643600 |
|
||||
And user "participant1" is participant of room "room" (v4)
|
||||
# Room is new
|
||||
When force run "OCA\Talk\BackgroundJob\ExpireObjectRooms" background jobs
|
||||
And user "participant1" is participant of room "room" (v4)
|
||||
# Room is old but has a new message
|
||||
And age room "room" 32 days
|
||||
And user "participant1" sends message "Message 1" to room "room" with 201
|
||||
When force run "OCA\Talk\BackgroundJob\ExpireObjectRooms" background jobs
|
||||
And user "participant1" is participant of room "room" (v4)
|
||||
# Room is old and last message is old
|
||||
And age room "room" 32 days
|
||||
When force run "OCA\Talk\BackgroundJob\ExpireObjectRooms" background jobs
|
||||
Then user "participant1" is not participant of room "room" (v4)
|
||||
|
||||
Scenario: No retention of a future event conversation
|
||||
Given user "participant1" creates room "room" (v4)
|
||||
| roomType | 3 |
|
||||
| roomName | room |
|
||||
| objectType | event |
|
||||
# 100 days in the future
|
||||
| objectId | 8640000#8643600 |
|
||||
And user "participant1" is participant of room "room" (v4)
|
||||
# Room is new
|
||||
When force run "OCA\Talk\BackgroundJob\ExpireObjectRooms" background jobs
|
||||
And user "participant1" is participant of room "room" (v4)
|
||||
# Still aging to put the last activity into the past
|
||||
And age room "room" 32 days
|
||||
When force run "OCA\Talk\BackgroundJob\ExpireObjectRooms" background jobs
|
||||
Then user "participant1" is participant of room "room" (v4)
|
||||
Reference in New Issue
Block a user