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 tests for MSC3930: polls push rules #578

Merged
merged 8 commits into from
Jan 18, 2023
Merged

Add tests for MSC3930: polls push rules #578

merged 8 commits into from
Jan 18, 2023

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Jan 6, 2023

This PR adds tests for MSC3930. It queries the default push rules from the homeserver and verifies the content and ordering of the push rules defined in MSC3930.

This PR is based on #577. This PR has now been rebased on main.

@anoadragon453 anoadragon453 requested review from a team and kegsay as code owners January 6, 2023 18:40
Comment on lines +180 to +181
// TODO: Test whether the homeserver correctly calls POST /_matrix/push/v1/notify on the push gateway
// in accordance with the push rules. Blocked by Complement not having a push gateway implementation.
Copy link
Member Author

Choose a reason for hiding this comment

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

Heads up: I don't intend to fix this in this PR, since it requires the heavy chunk of work of making Complement support handling the Push Gateway API. The known implementations of matrix-org/matrix-spec-proposals#3930 are currently intending to process push rules entirely client-side anyways.

@clokep clokep changed the title Add tests for MSC3930 Add tests for MSC3930: polls push rules Jan 11, 2023
Copy link
Contributor

@squahtx squahtx left a comment

Choose a reason for hiding this comment

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

Looks good, just a few minor comments and questions.

The comments describing what the push rules do are really helpful!

tests/msc3930_test.go Outdated Show resolved Hide resolved
tests/msc3930_test.go Outdated Show resolved Hide resolved
tests/msc3930_test.go Outdated Show resolved Hide resolved
tests/msc3930_test.go Outdated Show resolved Hide resolved
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
@anoadragon453 anoadragon453 merged commit c3c759b into main Jan 18, 2023
@anoadragon453 anoadragon453 deleted the anoa/msc3930 branch January 18, 2023 17:07
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