-
Notifications
You must be signed in to change notification settings - Fork 66
Application service can join remote federated room without profile set #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -522,3 +522,28 @@ func TestSendJoinPartialStateResponse(t *testing.T) { | |
| func typeAndStateKeyForEvent(result gjson.Result) string { | ||
| return strings.Join([]string{result.Map()["type"].Str, result.Map()["state_key"].Str}, "|") | ||
| } | ||
|
|
||
| func TestJoinFederatedRoomFromApplicationServiceBridgeUser(t *testing.T) { | ||
| deployment := Deploy(t, b.BlueprintHSWithApplicationService) | ||
| defer deployment.Destroy(t) | ||
|
|
||
| // Create the application service bridge user to try to join the room from | ||
| asUserID := "@the-bridge-user:hs1" | ||
| as := deployment.Client(t, "hs1", asUserID) | ||
|
|
||
| // Create the federated remote user which will create the room | ||
| remoteUserID := "@charlie:hs2" | ||
| remoteCharlie := deployment.Client(t, "hs2", remoteUserID) | ||
|
|
||
| t.Run("join remote federated room as application service user", func(t *testing.T) { | ||
| //t.Parallel() | ||
| // Create the room from a remote homeserver | ||
| roomID := remoteCharlie.CreateRoom(t, map[string]interface{}{ | ||
| "preset": "public_chat", | ||
| "name": "hs2 room", | ||
| }) | ||
|
|
||
| // Join the AS bridge user to the remote federated room (without a profile set) | ||
| as.JoinRoom(t, roomID, []string{"hs2"}) | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test failing in Dendrite. I'm guessing we don't configure application service registrations in it like we do for Synapse.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @kegsay
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Complement does support configuring application services. For Synapse, that means setting up the registration. But the application service server doesn't work yet. In the tests so far, I've only needed the Application service servers not needed/supported until #221 (review)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, okay. Then yeah the Dendrite image won't read the registration files yet. Skip them on Dendrite please. |
||
| }) | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that we have
t.Parallel()commented out elsewhere in this file. Do we care about it also being here?