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

Skip tests requiring unauthenticated media on Synapse #747

Merged
merged 4 commits into from
Nov 20, 2024

Conversation

reivilibre
Copy link
Contributor

@reivilibre reivilibre commented Nov 19, 2024

These will be expected to fail when Synapse enforces authenticated media by default in
element-hq/synapse#17889

Pull Request Checklist

Signed-off-by: Olivier 'reivilibre' oliverw@element.io

@reivilibre reivilibre requested review from a team as code owners November 19, 2024 10:35
This will be expected to fail when Synapse enforces
authenticated media by default in
element-hq/synapse#17889
@reivilibre reivilibre force-pushed the rei/synapse_testcontent_unauthed_skip branch from ad2e34c to 272068b Compare November 19, 2024 11:55
@reivilibre reivilibre changed the title Skip TestContent on Synapse Skip tests requiring unauthenticated media on Synapse Nov 19, 2024
@reivilibre reivilibre force-pushed the rei/synapse_testcontent_unauthed_skip branch 2 times, most recently from 427320a to 7431f3d Compare November 19, 2024 14:48
@reivilibre reivilibre force-pushed the rei/synapse_testcontent_unauthed_skip branch from 7431f3d to 634b54a Compare November 19, 2024 15:14
@@ -41,6 +41,7 @@ func TestMediaFilenames(t *testing.T) {
var filename = filename

t.Run(fmt.Sprintf("Can download file '%s'", filename), func(t *testing.T) {
runtime.SkipIf(t, runtime.Synapse)
Copy link
Member

Choose a reason for hiding this comment

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

I feel like we would want to keep these tests but change them to use authentication?

I think I'd prefer to disable authenticated media when testing with complement rather than not test these paths?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests already exist with authentication, see e.g. L56 for this one

Copy link
Member

Choose a reason for hiding this comment

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

Ah right, fair enough

Copy link
Member

Choose a reason for hiding this comment

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

Can you add a comment or something like "Synapse doesn't support unauthenticated media anymore"?

@@ -41,6 +41,7 @@ func TestMediaFilenames(t *testing.T) {
var filename = filename

t.Run(fmt.Sprintf("Can download file '%s'", filename), func(t *testing.T) {
runtime.SkipIf(t, runtime.Synapse)
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a comment or something like "Synapse doesn't support unauthenticated media anymore"?

@reivilibre reivilibre merged commit 9e9f6d3 into main Nov 20, 2024
4 checks passed
@reivilibre reivilibre deleted the rei/synapse_testcontent_unauthed_skip branch November 20, 2024 14:48
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