Skip to content
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

Test MSC3083 - joining a restricted room. #98

Merged
merged 6 commits into from
Apr 7, 2021

Conversation

clokep
Copy link
Member

@clokep clokep commented Apr 5, 2021

This tests matrix-org/synapse#9735 by creating a room that requires membership of a space to join, then attempts to join it (which will fail), then joins the space, then joins the room (which now succeeds).

See #93 for why this is being re-created.

internal/client/client.go Outdated Show resolved Hide resolved
tests/msc3083_test.go Outdated Show resolved Hide resolved

// Leaving the room works and the user is unable to re-join.
bob.LeaveRoom(t, room)
bob.LeaveRoom(t, space)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if you leave the space first?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving the space first should be fine. The ordering of these two steps doesn't matter.

@clokep clokep merged commit 8c9e20c into master Apr 7, 2021
@clokep clokep deleted the clokep/restricted-local-join branch April 7, 2021 16:31
@clokep
Copy link
Member Author

clokep commented Apr 7, 2021

Although...I now realize that these tests aren't actually running due to matrix-org/pipelines#139, although they won't run anyway until Synapse opts into them. Seems like a chicken-and-egg problem to me. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants