@@ -89,6 +89,70 @@ Feature: federation/invite
8989 | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8180 ","server ":"http :\/\/localhost :8180 "}} |
9090 | room | users | participant1 | conversation_created | You created the conversation | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "}} |
9191
92+ Scenario : Invite user with wrong casing
93+ Given the following "spreed" app config is set
94+ | federation_enabled | yes |
95+ Given user "participant1" creates room "room" (v4)
96+ | roomType | 3 |
97+ | roomName | room |
98+ And user "participant1" adds federated_user "PARTICIPANT2" to room "room" with 200 (v4)
99+ When user "participant1" sees the following attendees in room "room" with 200 (v4)
100+ | actorType | actorId | participantType |
101+ | users | participant1 | 1 |
102+ | federated_users | PARTICIPANT2 | 3 |
103+ Then user "participant1" sees the following system messages in room "room" with 200
104+ | room | actorType | actorId | systemMessage | message | messageParameters |
105+ | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "},"federated_user ":{"type ":"user ","id ":"PARTICIPANT2 ","name ":"PARTICIPANT2 @localhost :8180 ","server ":"http :\/\/localhost :8180 "}} |
106+ | room | users | participant1 | conversation_created | You created the conversation | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "}} |
107+ And user "participant1" adds federated_user "participant2" to room "room" with 404 (v4)
108+ When user "participant1" sees the following attendees in room "room" with 200 (v4)
109+ | actorType | actorId | participantType |
110+ | users | participant1 | 1 |
111+ | federated_users | PARTICIPANT2 | 3 |
112+ Then user "participant1" sees the following system messages in room "room" with 200
113+ | room | actorType | actorId | systemMessage | message | messageParameters |
114+ | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "},"federated_user ":{"type ":"user ","id ":"PARTICIPANT2 ","name ":"PARTICIPANT2 @localhost :8180 ","server ":"http :\/\/localhost :8180 "}} |
115+ | room | users | participant1 | conversation_created | You created the conversation | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "}} |
116+ And force run "OCA\T alk\B ackgroundJob\R emoveEmptyRooms" background jobs
117+ And user "participant2" has the following invitations (v1)
118+ | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName | localCloudId |
119+ | LOCAL | room | 0 | participant1 @http ://localhost :8080 | participant1 -displayname | PARTICIPANT2 @http ://localhost :8180 |
120+ Then user "participant2" has the following notifications
121+ | app | object_type | object_id | subject | message |
122+ | 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 |
123+ And user "participant2" accepts invite to room "room" of server "LOCAL" with 200 (v1)
124+ | id | name | type | remoteServer | remoteToken |
125+ | room | room | 3 | LOCAL | room |
126+ And user "participant2" accepts invite to room "room" of server "LOCAL" with 400 (v1)
127+ | error | state |
128+ And user "participant2" declines invite to room "room" of server "LOCAL" with 400 (v1)
129+ | error | state |
130+ And user "participant2" has the following invitations (v1)
131+ | remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
132+ | LOCAL | room | 1 | participant1 @http ://localhost :8080 | participant1 -displayname |
133+ When user "participant1" sees the following attendees in room "room" with 200 (v4)
134+ | actorType | actorId | participantType |
135+ | users | participant1 | 1 |
136+ | federated_users | participant2 | 3 |
137+ Then user "participant1" sees the following system messages in room "room" with 200
138+ | room | actorType | actorId | systemMessage | message | messageParameters |
139+ | 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 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 -displayname ","server ":"http :\/\/localhost :8180 "}} |
140+ | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "},"federated_user ":{"type ":"user ","id ":"PARTICIPANT2 ","name ":"PARTICIPANT2 @localhost :8180 ","server ":"http :\/\/localhost :8180 "}} |
141+ | room | users | participant1 | conversation_created | You created the conversation | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "}} |
142+ # Remove a remote user after they joined
143+ When user "participant1" removes remote "participant2" from room "room" with 200 (v4)
144+ And user "participant2" has the following invitations (v1)
145+ Then user "participant2" is participant of the following rooms (v4)
146+ When user "participant1" sees the following attendees in room "room" with 200 (v4)
147+ | actorType | actorId | participantType |
148+ | users | participant1 | 1 |
149+ Then user "participant1" sees the following system messages in room "room" with 200
150+ | room | actorType | actorId | systemMessage | message | messageParameters |
151+ | room | users | participant1 | federated_user_removed | You removed {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8180 ","server ":"http :\/\/localhost :8180 "}} |
152+ | 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 "},"federated_user ":{"type ":"user ","id ":"participant2 ","name ":"participant2 @localhost :8180 ","server ":"http :\/\/localhost :8180 "}} |
153+ | room | users | participant1 | federated_user_added | You invited {federated_user } | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "},"federated_user ":{"type ":"user ","id ":"PARTICIPANT2 ","name ":"PARTICIPANT2 @localhost :8180 ","server ":"http :\/\/localhost :8180 "}} |
154+ | room | users | participant1 | conversation_created | You created the conversation | {"actor ":{"type ":"user ","id ":"participant1 ","name ":"participant1 -displayname "}} |
155+
92156 Scenario : Declining an invite
93157 Given the following "spreed" app config is set
94158 | federation_enabled | yes |
0 commit comments