Skip to content

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

Merged
kegsay merged 3 commits into
mainfrom
anoa/local_device_list_update
Feb 18, 2022
Merged

kegsay merged 3 commits into
mainfrom
anoa/local_device_list_update

Conversation

@anoadragon453

Copy link
Copy Markdown
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
Comment thread tests/csapi/device_lists_test.go Outdated

@kegsay kegsay left a comment

Copy link
Copy Markdown
Member

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.

Comment thread tests/csapi/device_lists_test.go Outdated
@anoadragon453

Copy link
Copy Markdown
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

kegsay commented Feb 16, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

@kegsay Yep ok, sounds good to me!

@kegsay

kegsay commented Feb 17, 2022

Copy link
Copy Markdown
Member

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

kegsay commented Feb 18, 2022

Copy link
Copy Markdown
Member

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

kegsay commented Feb 18, 2022

Copy link
Copy Markdown
Member

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