aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared/videos.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-11 11:39:59 +0200
committerChocobozzz <me@florianbigard.com>2023-07-11 11:39:59 +0200
commit34555bebf8e2a2caf2cb1cfd85280d140fcc3802 (patch)
tree9c5e5eb78891bb09d23ae3fe37fe3db69bb8a2d9 /server/tests/shared/videos.ts
parentd732ec7b46caa2a0972f132894023fec6bc5dd6a (diff)
downloadPeerTube-34555bebf8e2a2caf2cb1cfd85280d140fcc3802.tar.gz
PeerTube-34555bebf8e2a2caf2cb1cfd85280d140fcc3802.tar.zst
PeerTube-34555bebf8e2a2caf2cb1cfd85280d140fcc3802.zip
Migrate from webseed to web-videos
Diffstat (limited to 'server/tests/shared/videos.ts')
-rw-r--r--server/tests/shared/videos.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/shared/videos.ts b/server/tests/shared/videos.ts
index b7f7a1613..e09bd60b5 100644
--- a/server/tests/shared/videos.ts
+++ b/server/tests/shared/videos.ts
@@ -51,11 +51,12 @@ async function completeWebVideoFilesCheck (options: {
51 expect(file.torrentUrl).to.match(new RegExp(`${server.url}/lazy-static/torrents/${nameReg}.torrent`)) 51 expect(file.torrentUrl).to.match(new RegExp(`${server.url}/lazy-static/torrents/${nameReg}.torrent`))
52 52
53 if (objectStorageBaseUrl && requiresAuth) { 53 if (objectStorageBaseUrl && requiresAuth) {
54 expect(file.fileUrl).to.match(new RegExp(`${originServer.url}/object-storage-proxy/webseed/${privatePath}${nameReg}${extension}`)) 54 const regexp = new RegExp(`${originServer.url}/object-storage-proxy/web-videos/${privatePath}${nameReg}${extension}`)
55 expect(file.fileUrl).to.match(regexp)
55 } else if (objectStorageBaseUrl) { 56 } else if (objectStorageBaseUrl) {
56 expectStartWith(file.fileUrl, objectStorageBaseUrl) 57 expectStartWith(file.fileUrl, objectStorageBaseUrl)
57 } else { 58 } else {
58 expect(file.fileUrl).to.match(new RegExp(`${originServer.url}/static/webseed/${privatePath}${nameReg}${extension}`)) 59 expect(file.fileUrl).to.match(new RegExp(`${originServer.url}/static/web-videos/${privatePath}${nameReg}${extension}`))
59 } 60 }
60 61
61 expect(file.fileDownloadUrl).to.match(new RegExp(`${originServer.url}/download/videos/${nameReg}${extension}`)) 62 expect(file.fileDownloadUrl).to.match(new RegExp(`${originServer.url}/download/videos/${nameReg}${extension}`))