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

Outlier/rejected tests for /state and /state_ids #1211

Merged
merged 3 commits into from
Mar 28, 2022

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 12, 2022

Extend the tests for /state and /state_ids to check the behaviour on outliers and rejected events.

The rejected-event behaviour has always been to return a 404, but we add a test to make sure it stays that way.

The outlier behaviour is changed by matrix-org/synapse#12087.

Extend the tests for `/state` and `/state_ids` to check the behaviour on
outliers and rejected events.

The rejected-event behaviour has always been to return a 404, but we add a test
to make sure it stays that way.

The outlier behaviour is changed by
matrix-org/synapse#12087.
@richvdh richvdh requested a review from a team as a code owner March 12, 2022 16:57
Copy link
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

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

Seems reasonable, but I had one question!

tests/50federation/00prepare.pl Show resolved Hide resolved
Comment on lines 219 to 222
auth_events => $room->make_event_refs(
$room->get_current_state_event( "m.room.create" ),
$room->get_current_state_event( "m.room.power_levels" ),
$room->get_current_state_event( "m.room.member", $sending_user_id ),
Copy link
Member

Choose a reason for hiding this comment

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

Looking at Room->create_event, I think these are essentially the default auth_events (although that seems to also specify m.room.join_rules). Am I missing something or are we just being specific here?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, I don't know why I did this.

@richvdh richvdh requested a review from clokep March 25, 2022 14:33
@richvdh richvdh merged commit f9bee05 into develop Mar 28, 2022
@richvdh richvdh deleted the rav/state_404_for_outlier branch March 28, 2022 12:45
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