@@ -6,7 +6,8 @@ Feature: federation/invite
6
6
| federation_enabled | yes |
7
7
Given using server "LOCAL"
8
8
Given user "participant1" exists
9
- Given user "participant2" exists
9
+ And the following "spreed" app config is set
10
+ | federation_enabled | yes |
10
11
11
12
Scenario : Federation is disabled
12
13
Given the following "spreed" app config is set
@@ -20,8 +21,6 @@ Feature: federation/invite
20
21
| users | participant1 | 1 |
21
22
22
23
Scenario : Invite an invalid user
23
- Given the following "spreed" app config is set
24
- | federation_enabled | yes |
25
24
Given user "participant1" creates room "room" (v4)
26
25
| roomType | 3 |
27
26
| roomName | room |
@@ -31,8 +30,6 @@ Feature: federation/invite
31
30
| users | participant1 | 1 |
32
31
33
32
Scenario : Accepting an invite
34
- Given the following "spreed" app config is set
35
- | federation_enabled | yes |
36
33
Given user "participant1" creates room "room" (v4)
37
34
| roomType | 3 |
38
35
| roomName | room |
@@ -43,24 +40,27 @@ Feature: federation/invite
43
40
| federated_users | participant2 | 3 |
44
41
Then user "participant1" sees the following system messages in room "room" with 200
45
42
| room | actorType | actorId | systemMessage | message | messageParameters |
46
- | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"http :\/\/ localhost : 8180 ","mention -id ":"federated_user \/participant2 @http :\/\/ localhost : 8180 "}} |
43
+ | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"{$ REMOTE_URL } ","mention -id ":"federated_user \/participant2 @{$ REMOTE_URL } "}} |
47
44
| room | users | participant1 | conversation_created | You created the conversation | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "}} |
48
45
And user "participant1" adds federated_user "participant2" to room "room" with 200 (v4)
46
+ Given using server "REMOTE"
49
47
Then user "participant2" is participant of the following rooms (v4)
50
48
| id | name | type |
51
49
Then last response has federation invites header set to "1"
50
+ Given using server "LOCAL"
52
51
When user "participant1" sees the following attendees in room "room" with 200 (v4)
53
52
| actorType | actorId | participantType |
54
53
| users | participant1 | 1 |
55
54
| federated_users | participant2 | 3 |
56
55
Then user "participant1" sees the following system messages in room "room" with 200
57
56
| room | actorType | actorId | systemMessage | message | messageParameters |
58
- | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"http :\/\/ localhost : 8180 ","mention -id ":"federated_user \/participant2 @http :\/\/ localhost : 8180 "}} |
57
+ | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"{$ REMOTE_URL } ","mention -id ":"federated_user \/participant2 @{$ REMOTE_URL } "}} |
59
58
| room | users | participant1 | conversation_created | You created the conversation | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "}} |
60
59
And force run "OCA\T alk\B ackgroundJob\R emoveEmptyRooms" background jobs
60
+ Given using server "REMOTE"
61
61
And user "participant2" has the following invitations (v1)
62
- | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
63
- | LOCAL | room | 0 | participant1 @http :// localhost : 8080 | participant1 -displayname |
62
+ | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
63
+ | LOCAL | room | 0 | participant1 @LOCAL | participant1 -displayname |
64
64
Then user "participant2" has the following notifications
65
65
| app | object_type | object_id | subject | message |
66
66
| spreed | remote_talk_share | INVITE_ID (LOCAL ::room ) | @participant1 -displayname invited you to a federated conversation | @participant1 -displayname invited you to join room on http ://localhost :8080 |
@@ -76,29 +76,32 @@ Feature: federation/invite
76
76
And user "participant2" declines invite to room "room" of server "LOCAL" with 400 (v1)
77
77
| error | state |
78
78
And user "participant2" has the following invitations (v1)
79
- | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
80
- | LOCAL | room | 1 | participant1 @http ://localhost :8080 | participant1 -displayname |
79
+ | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
80
+ | LOCAL | room | 1 | participant1 @LOCAL | participant1 -displayname |
81
+ Given using server "LOCAL"
81
82
When user "participant1" sees the following attendees in room "room" with 200 (v4)
82
83
| actorType | actorId | participantType |
83
84
| users | participant1 | 1 |
84
85
| federated_users | participant2 | 3 |
85
86
Then user "participant1" sees the following system messages in room "room" with 200
86
87
| room | actorType | actorId | systemMessage | message | messageParameters |
87
- | room | federated_users | participant2 @http :// localhost : 8180 | federated_user_added | {federated_user } accepted the invitation | {"actor ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"http :\/\/ localhost : 8180 ","mention -id ":"federated_user \/participant2 @http :\/\/ localhost : 8180 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"http :\/\/ localhost : 8180 ","mention -id ":"federated_user \/participant2 @http :\/\/ localhost : 8180 "}} |
88
- | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"http :\/\/ localhost : 8180 ","mention -id ":"federated_user \/participant2 @http :\/\/ localhost : 8180 "}} |
88
+ | room | federated_users | participant2 @REMOTE | federated_user_added | {federated_user } accepted the invitation | {"actor ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"{$ REMOTE_URL } ","mention -id ":"federated_user \/participant2 @{$ REMOTE_URL } "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"{$ REMOTE_URL } ","mention -id ":"federated_user \/participant2 @{$ REMOTE_URL } "}} |
89
+ | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"{$ REMOTE_URL } ","mention -id ":"federated_user \/participant2 @{$ REMOTE_URL } "}} |
89
90
| room | users | participant1 | conversation_created | You created the conversation | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "}} |
90
91
# Remove a remote user after they joined
91
92
When user "participant1" removes remote "participant2" from room "room" with 200 (v4)
93
+ Given using server "REMOTE"
92
94
And user "participant2" has the following invitations (v1)
93
95
Then user "participant2" is participant of the following rooms (v4)
96
+ Given using server "LOCAL"
94
97
When user "participant1" sees the following attendees in room "room" with 200 (v4)
95
98
| actorType | actorId | participantType |
96
99
| users | participant1 | 1 |
97
100
Then user "participant1" sees the following system messages in room "room" with 200
98
101
| room | actorType | actorId | systemMessage | message | messageParameters |
99
- | room | users | participant1 | federated_user_removed | You removed {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8180 ","server ":"http :\/\/ localhost : 8180 ","mention -id ":"federated_user \/participant2 @http :\/\/ localhost : 8180 "}} |
100
- | room | federated_users | participant2 @http :// localhost : 8180 | federated_user_added | {federated_user } accepted the invitation | {"actor ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8180 ","server ":"http :\/\/ localhost : 8180 ","mention -id ":"federated_user \/participant2 @http :\/\/ localhost : 8180 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8180 ","server ":"http :\/\/ localhost : 8180 ","mention -id ":"federated_user \/participant2 @http :\/\/ localhost : 8180 "}} |
101
- | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8180 ","server ":"http :\/\/ localhost : 8180 ","mention -id ":"federated_user \/participant2 @http :\/\/ localhost : 8180 "}} |
102
+ | room | users | participant1 | federated_user_removed | You removed {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8280 ","server ":"{$ REMOTE_URL } ","mention -id ":"federated_user \/participant2 @{$ REMOTE_URL } "}} |
103
+ | room | federated_users | participant2 @REMOTE | federated_user_added | {federated_user } accepted the invitation | {"actor ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8280 ","server ":"{$ REMOTE_URL } ","mention -id ":"federated_user \/participant2 @{$ REMOTE_URL } "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8280 ","server ":"{$ REMOTE_URL } ","mention -id ":"federated_user \/participant2 @{$ REMOTE_URL } "}} |
104
+ | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8280 ","server ":"{$ REMOTE_URL } ","mention -id ":"federated_user \/participant2 @{$ REMOTE_URL } "}} |
102
105
| room | users | participant1 | conversation_created | You created the conversation | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname ","mention -id ":"participant1 "}} |
103
106
104
107
Scenario : Invite user with wrong casing
0 commit comments