-
Notifications
You must be signed in to change notification settings - Fork 54
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
Conversation
Some helper methods to get and set push rules.
Found while traversing the codebase.
// 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. |
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.
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.
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.
Looks good, just a few minor comments and questions.
The comments describing what the push rules do are really helpful!
Co-authored-by: Sean Quah <[email protected]>
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 onmain
.