-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
This will be expected to fail when Synapse enforces authenticated media by default in element-hq/synapse#17889
ad2e34c
to
272068b
Compare
427320a
to
7431f3d
Compare
7431f3d
to
634b54a
Compare
@@ -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) |
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.
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?
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.
These tests already exist with authentication, see e.g. L56 for this one
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.
Ah right, fair enough
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.
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) |
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.
Can you add a comment or something like "Synapse doesn't support unauthenticated media anymore"?
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