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 creating rooms with names and topics #455

Merged
merged 7 commits into from
Oct 22, 2018

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Jun 21, 2018

Creating rooms with avatars is under a proposal at the time of writing.

Spec: matrix-org/matrix-spec-proposals#1326
Synapse: matrix-org/synapse#3417

Signed-off-by: Travis Ralston <[email protected]>
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

1 similar comment
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

The original spec proposal (matrix-org/matrix-spec-proposals#1326) has instead gone the route of deprecating the name and topic. The avatar test is not needed.

Signed-off-by: Travis Ralston <[email protected]>
@turt2live turt2live changed the title Add tests for creating rooms with names, topics, and avatars Add tests for creating rooms with names and topics Jun 21, 2018
@turt2live
Copy link
Member Author

I've updated this to be just for creating rooms with names and topics. Although the proposal is to deprecate these parameters, it seems useful to test these functions while the fields still exist. A later PR should remove them in the event the spec completes the deprecation process.

@turt2live turt2live changed the title Add tests for creating rooms with names and topics Add tests for creating rooms with names, topics, and guest access Jun 22, 2018
@richvdh
Copy link
Member

richvdh commented Aug 2, 2018

As per matrix-org/synapse#3421 (review), I think the tests of guest_can_join are incorrect.

@turt2live
Copy link
Member Author

Have removed the tests - please take a look

@turt2live turt2live changed the title Add tests for creating rooms with names, topics, and guest access Add tests for creating rooms with names and topics Aug 2, 2018
@turt2live turt2live requested a review from richvdh October 17, 2018 17:12
@turt2live turt2live removed their assignment Oct 17, 2018
@turt2live
Copy link
Member Author

I think this now does the right thing - PTAL. I have heavily abused copy/paste for this.

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm

@turt2live turt2live merged commit b51d8b1 into matrix-org:develop Oct 22, 2018
@turt2live turt2live deleted the travis/room-create branch October 22, 2018 17:24
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.

3 participants