|
|
@ -25,6 +25,10 @@ Feature: federation/invite |
|
|
|
| actorType | actorId | participantType | |
|
|
|
| users | participant1 | 1 | |
|
|
|
| federated_users | participant2 | 3 | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 |
|
|
|
| room | actorType | actorId | systemMessage | message | messageParameters | |
|
|
|
| room | users | participant1 | federated_user_added | You invited {user} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"federated_user":{"type":"user","id":"participant2","name":"participant2@localhost:8180","server":"http:\/\/localhost:8180"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
And user "participant2" has the following invitations (v1) |
|
|
|
| remote_server | remote_token | |
|
|
|
| LOCAL | room | |
|
|
@ -37,6 +41,11 @@ Feature: federation/invite |
|
|
|
| actorType | actorId | participantType | |
|
|
|
| users | participant1 | 1 | |
|
|
|
| federated_users | participant2 | 3 | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 |
|
|
|
| room | actorType | actorId | systemMessage | message | messageParameters | |
|
|
|
| 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"}} | |
|
|
|
| room | users | participant1 | federated_user_added | You invited {user} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"federated_user":{"type":"user","id":"participant2","name":"participant2@localhost:8180","server":"http:\/\/localhost:8180"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
|
|
|
|
Scenario: Declining an invite |
|
|
|
Given the following "spreed" app config is set |
|
|
@ -49,6 +58,10 @@ Feature: federation/invite |
|
|
|
| actorType | actorId | participantType | |
|
|
|
| users | participant1 | 1 | |
|
|
|
| federated_users | participant2 | 3 | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 |
|
|
|
| room | actorType | actorId | systemMessage | message | messageParameters | |
|
|
|
| room | users | participant1 | federated_user_added | You invited {user} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"federated_user":{"type":"user","id":"participant2","name":"participant2@localhost:8180","server":"http:\/\/localhost:8180"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |
|
|
|
And user "participant2" has the following invitations (v1) |
|
|
|
| remote_server | remote_token | |
|
|
|
| LOCAL | room | |
|
|
@ -60,3 +73,8 @@ Feature: federation/invite |
|
|
|
When user "participant1" sees the following attendees in room "room" with 200 (v4) |
|
|
|
| actorType | actorId | participantType | |
|
|
|
| users | participant1 | 1 | |
|
|
|
Then user "participant1" sees the following system messages in room "room" with 200 |
|
|
|
| room | actorType | actorId | systemMessage | message | messageParameters | |
|
|
|
| room | federated_users | participant2@http://localhost:8180 | federated_user_removed | {federated_user} declined 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"}} | |
|
|
|
| room | users | participant1 | federated_user_added | You invited {user} | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"},"federated_user":{"type":"user","id":"participant2","name":"participant2@localhost:8180","server":"http:\/\/localhost:8180"}} | |
|
|
|
| room | users | participant1 | conversation_created | You created the conversation | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname"}} | |