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

Add a test for device list updates of local users coming down /sync #305

Merged
merged 3 commits into from
Feb 18, 2022

Conversation

anoadragon453
Copy link
Member

This PR adds a test that: checks device list changes are propagated to other users on the local homeserver, if those users share a room.

This was created in part to help test matrix-org/synapse#11905, until I realised that we're going to need to reach deeper into Synapse in order to do what we want.

Still, this is hopefully useful.

@anoadragon453 anoadragon453 force-pushed the anoa/local_device_list_update branch from 6f93abe to 49c62d0 Compare February 10, 2022 18:26
Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

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

Use whoami and dendrite should be happier too.

tests/csapi/device_lists_test.go Outdated Show resolved Hide resolved
@anoadragon453
Copy link
Member Author

Have updated, however it looks like Dendrite doesn't support the v3 version of the whoami endpoint. Shall I change the test to use r0 instead?

@anoadragon453 anoadragon453 marked this pull request as ready for review February 15, 2022 11:35
@kegsay
Copy link
Member

kegsay commented Feb 16, 2022

No, I'll just add v3 to Dendrite and merge this when it has landed, assuming you're happy.

@kegsay kegsay self-assigned this Feb 16, 2022
@anoadragon453
Copy link
Member Author

@kegsay Yep ok, sounds good to me!

@kegsay
Copy link
Member

kegsay commented Feb 17, 2022

This has taken a bit longer than planned because it's kinda annoying to actually do this using gorilla/mux. I'll get there..

@kegsay
Copy link
Member

kegsay commented Feb 18, 2022

Tests still failing because /whoami isn't returning a device ID: {"user_id":"@alice:hs1"} on dendrite.

kegsay added a commit to matrix-org/dendrite that referenced this pull request Feb 18, 2022
Basically include `is_guest` and `device_id`. The latter is
needed for matrix-org/complement#305
kegsay added a commit to matrix-org/dendrite that referenced this pull request Feb 18, 2022
Basically include `is_guest` and `device_id`. The latter is
needed for matrix-org/complement#305
@kegsay
Copy link
Member

kegsay commented Feb 18, 2022

Tests should pass now.

@kegsay kegsay merged commit a931b4b into main Feb 18, 2022
@kegsay kegsay deleted the anoa/local_device_list_update branch February 18, 2022 11:42
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