diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/videos/video-imports.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts index 2eac130d2..108688651 100644 --- a/server/tests/api/videos/video-imports.ts +++ b/server/tests/api/videos/video-imports.ts | |||
@@ -336,6 +336,32 @@ Ajouter un sous-titre est vraiment facile`) | |||
336 | expect(maxResolution, 'expected max resolution not met').to.equals(VideoResolution.H_1080P) | 336 | expect(maxResolution, 'expected max resolution not met').to.equals(VideoResolution.H_1080P) |
337 | }) | 337 | }) |
338 | 338 | ||
339 | it('Should import a peertube video', async function () { | ||
340 | this.timeout(120_000) | ||
341 | |||
342 | // TODO: include peertube_short when https://github.com/ytdl-org/youtube-dl/pull/29475 is merged | ||
343 | for (const targetUrl of [ FIXTURE_URLS.peertube_long ]) { | ||
344 | // for (const targetUrl of [ FIXTURE_URLS.peertube_long, FIXTURE_URLS.peertube_short ]) { | ||
345 | await servers[0].config.disableTranscoding() | ||
346 | |||
347 | const attributes = { | ||
348 | targetUrl, | ||
349 | channelId: channelIdServer1, | ||
350 | privacy: VideoPrivacy.PUBLIC | ||
351 | } | ||
352 | const { video } = await servers[0].imports.importVideo({ attributes }) | ||
353 | const videoUUID = video.uuid | ||
354 | |||
355 | await waitJobs(servers) | ||
356 | |||
357 | for (const server of servers) { | ||
358 | const video = await server.videos.get({ id: videoUUID }) | ||
359 | |||
360 | expect(video.name).to.equal('E2E tests') | ||
361 | } | ||
362 | } | ||
363 | }) | ||
364 | |||
339 | after(async function () { | 365 | after(async function () { |
340 | await cleanupTests(servers) | 366 | await cleanupTests(servers) |
341 | }) | 367 | }) |