aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-03-07 11:17:12 +0100
committerChocobozzz <me@florianbigard.com>2023-03-07 11:17:12 +0100
commit09f3d81e0c8edebbe8f5698811ecfb165f942378 (patch)
treef87198a2eaa9761201d28ea2bd3eae9c057f2785 /server/tests
parentd9dbf27a7dacb42e49e21d5691141c2edf885644 (diff)
parent73fb3dc53571a6e94750a9d6cb5c2e949e1adcb9 (diff)
downloadPeerTube-09f3d81e0c8edebbe8f5698811ecfb165f942378.tar.gz
PeerTube-09f3d81e0c8edebbe8f5698811ecfb165f942378.tar.zst
PeerTube-09f3d81e0c8edebbe8f5698811ecfb165f942378.zip
Merge branch 'release/5.1.0' into develop
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/videos/video-static-file-privacy.ts5
-rw-r--r--server/tests/shared/streaming-playlists.ts3
2 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/videos/video-static-file-privacy.ts b/server/tests/api/videos/video-static-file-privacy.ts
index ef0774b41..16530884e 100644
--- a/server/tests/api/videos/video-static-file-privacy.ts
+++ b/server/tests/api/videos/video-static-file-privacy.ts
@@ -256,10 +256,9 @@ describe('Test video static file privacy', function () {
256 const videoFileToken = await server.videoToken.getVideoFileToken({ videoId: uuid }) 256 const videoFileToken = await server.videoToken.getVideoFileToken({ videoId: uuid })
257 await waitJobs([ server ]) 257 await waitJobs([ server ])
258 258
259 const video = await server.videos.getWithToken({ id: uuid })
260 const hls = video.streamingPlaylists[0]
261
262 { 259 {
260 const video = await server.videos.getWithToken({ id: uuid })
261 const hls = video.streamingPlaylists[0]
263 const query = { videoFileToken } 262 const query = { videoFileToken }
264 const { text } = await makeRawRequest({ url: hls.playlistUrl, query, expectedStatus: HttpStatusCode.OK_200 }) 263 const { text } = await makeRawRequest({ url: hls.playlistUrl, query, expectedStatus: HttpStatusCode.OK_200 })
265 264
diff --git a/server/tests/shared/streaming-playlists.ts b/server/tests/shared/streaming-playlists.ts
index 75e135c4e..1c38cb512 100644
--- a/server/tests/shared/streaming-playlists.ts
+++ b/server/tests/shared/streaming-playlists.ts
@@ -214,7 +214,7 @@ async function checkVideoFileTokenReinjection (options: {
214 ? i 214 ? i
215 : `-${resolution}` 215 : `-${resolution}`
216 216
217 expect(text).to.contain(`${suffix}.m3u8?videoFileToken=${videoFileToken}`) 217 expect(text).to.contain(`${suffix}.m3u8?videoFileToken=${videoFileToken}&reinjectVideoFileToken=true`)
218 } 218 }
219 219
220 const resolutionPlaylists = extractResolutionPlaylistUrls(hls.playlistUrl, text) 220 const resolutionPlaylists = extractResolutionPlaylistUrls(hls.playlistUrl, text)
@@ -228,6 +228,7 @@ async function checkVideoFileTokenReinjection (options: {
228 : '.mp4' 228 : '.mp4'
229 229
230 expect(text).to.contain(`${extension}?videoFileToken=${videoFileToken}`) 230 expect(text).to.contain(`${extension}?videoFileToken=${videoFileToken}`)
231 expect(text).not.to.contain(`reinjectVideoFileToken=true`)
231 } 232 }
232} 233}
233 234