@@ -41,6 +41,7 @@ func TestMediaFilenames(t *testing.T) {
41
41
var filename = filename
42
42
43
43
t .Run (fmt .Sprintf ("Can download file '%s'" , filename ), func (t * testing.T ) {
44
+ runtime .SkipIf (t , runtime .Synapse )
44
45
t .Parallel ()
45
46
46
47
mxcUri := alice .UploadContent (t , data .MatrixPng , filename , "image/png" )
@@ -69,6 +70,7 @@ func TestMediaFilenames(t *testing.T) {
69
70
70
71
// sytest: Can download specifying a different ASCII file name
71
72
t .Run ("Can download specifying a different ASCII file name" , func (t * testing.T ) {
73
+ runtime .SkipIf (t , runtime .Synapse )
72
74
t .Parallel ()
73
75
74
76
mxcUri := alice .UploadContent (t , data .MatrixPng , asciiFileName , "image/png" )
@@ -107,6 +109,7 @@ func TestMediaFilenames(t *testing.T) {
107
109
108
110
// sytest: Can download specifying a different Unicode file name
109
111
t .Run ("Can download specifying a different Unicode file name" , func (t * testing.T ) {
112
+ runtime .SkipIf (t , runtime .Synapse )
110
113
t .Parallel ()
111
114
112
115
mxcUri := alice .UploadContent (t , data .MatrixPng , unicodeFileName , "image/png" )
@@ -136,6 +139,7 @@ func TestMediaFilenames(t *testing.T) {
136
139
137
140
// sytest: Can download with Unicode file name locally
138
141
t .Run ("Can download with Unicode file name locally" , func (t * testing.T ) {
142
+ runtime .SkipIf (t , runtime .Synapse )
139
143
t .Parallel ()
140
144
141
145
mxcUri := alice .UploadContent (t , data .MatrixPng , unicodeFileName , "image/png" )
@@ -161,6 +165,7 @@ func TestMediaFilenames(t *testing.T) {
161
165
162
166
// sytest: Can download with Unicode file name over federation
163
167
t .Run ("Can download with Unicode file name over federation" , func (t * testing.T ) {
168
+ runtime .SkipIf (t , runtime .Synapse )
164
169
t .Parallel ()
165
170
166
171
mxcUri := alice .UploadContent (t , data .MatrixPng , unicodeFileName , "image/png" )
@@ -185,11 +190,11 @@ func TestMediaFilenames(t *testing.T) {
185
190
})
186
191
187
192
t .Run ("Will serve safe media types as inline" , func (t * testing.T ) {
188
- if runtime .Homeserver != runtime .Synapse && runtime . Homeserver != runtime . Conduwuit {
193
+ if runtime .Homeserver != runtime .Conduwuit {
189
194
// We need to check that this security behaviour is being correctly run in
190
- // Synapse or conduwuit, but since this is not part of the Matrix spec we do not assume
195
+ // conduwuit, but since this is not part of the Matrix spec we do not assume
191
196
// other homeservers are doing so.
192
- t .Skip ("Skipping test of Content-Disposition header requirements on non-Synapse and non- conduwuit homeserver" )
197
+ t .Skip ("Skipping test of Content-Disposition header requirements on non-conduwuit homeserver" )
193
198
}
194
199
t .Parallel ()
195
200
@@ -221,11 +226,11 @@ func TestMediaFilenames(t *testing.T) {
221
226
})
222
227
223
228
t .Run ("Will serve safe media types with parameters as inline" , func (t * testing.T ) {
224
- if runtime .Homeserver != runtime .Synapse && runtime . Homeserver != runtime . Conduwuit {
229
+ if runtime .Homeserver != runtime .Conduwuit {
225
230
// We need to check that this security behaviour is being correctly run in
226
- // Synapse or conduwuit, but since this is not part of the Matrix spec we do not assume
231
+ // conduwuit, but since this is not part of the Matrix spec we do not assume
227
232
// other homeservers are doing so.
228
- t .Skip ("Skipping test of Content-Disposition header requirements on non-Synapse and non- conduwuit homeserver" )
233
+ t .Skip ("Skipping test of Content-Disposition header requirements on non-conduwuit homeserver" )
229
234
}
230
235
t .Parallel ()
231
236
@@ -259,11 +264,11 @@ func TestMediaFilenames(t *testing.T) {
259
264
})
260
265
261
266
t .Run ("Will serve unsafe media types as attachments" , func (t * testing.T ) {
262
- if runtime .Homeserver != runtime .Synapse && runtime . Homeserver != runtime . Conduwuit {
267
+ if runtime .Homeserver != runtime .Conduwuit {
263
268
// We need to check that this security behaviour is being correctly run in
264
- // Synapse or conduwuit, but since this is not part of the Matrix spec we do not assume
269
+ // conduwuit, but since this is not part of the Matrix spec we do not assume
265
270
// other homeservers are doing so.
266
- t .Skip ("Skipping test of Content-Disposition header requirements on non-Synapse and non- conduwuit homeserver" )
271
+ t .Skip ("Skipping test of Content-Disposition header requirements on non-conduwuit homeserver" )
267
272
}
268
273
t .Parallel ()
269
274
0 commit comments