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 "Test URL preview" sytest and basic webserver creation #520

Merged
merged 4 commits into from
Oct 28, 2022

Conversation

ShadowJonathan
Copy link
Contributor

@ShadowJonathan ShadowJonathan commented Oct 16, 2022

This follows up on #279, specifically this comment.

This re-adds the URL preview test, but also adds a basic framework in internal/web for those webservers, with example use being displayed in the re-added test.

This PR is related to matrix-org/synapse#14198, which needs to land first before the test can be un-skipped had landed.

@ShadowJonathan ShadowJonathan requested review from a team and kegsay as code owners October 16, 2022 18:06
Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM, this is a good API shape, thanks!

internal/web/server.go Outdated Show resolved Hide resolved
tests/csapi/url_preview_test.go Outdated Show resolved Hide resolved
@ShadowJonathan ShadowJonathan requested a review from kegsay October 28, 2022 08:52
@kegsay kegsay merged commit fecbe23 into matrix-org:main Oct 28, 2022
@ShadowJonathan ShadowJonathan deleted the url-preview-test branch October 28, 2022 14:30
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