aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/transcoding
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-22 16:58:49 +0100
committerChocobozzz <me@florianbigard.com>2022-03-22 17:24:32 +0100
commit92e66e04f7f51d37b465cff442ce47f6d6d7cadd (patch)
tree4475c5c601c0f6673ca56afba5b7f70a4fae4ec3 /server/tests/api/transcoding
parent1808a1f8e4b7b102823492a2007a46929aebf189 (diff)
downloadPeerTube-92e66e04f7f51d37b465cff442ce47f6d6d7cadd.tar.gz
PeerTube-92e66e04f7f51d37b465cff442ce47f6d6d7cadd.tar.zst
PeerTube-92e66e04f7f51d37b465cff442ce47f6d6d7cadd.zip
Rename studio to editor
Diffstat (limited to 'server/tests/api/transcoding')
-rw-r--r--server/tests/api/transcoding/index.ts2
-rw-r--r--server/tests/api/transcoding/video-studio.ts (renamed from server/tests/api/transcoding/video-editor.ts)18
2 files changed, 10 insertions, 10 deletions
diff --git a/server/tests/api/transcoding/index.ts b/server/tests/api/transcoding/index.ts
index 8a0a1d787..0cc28b4a4 100644
--- a/server/tests/api/transcoding/index.ts
+++ b/server/tests/api/transcoding/index.ts
@@ -2,4 +2,4 @@ export * from './audio-only'
2export * from './create-transcoding' 2export * from './create-transcoding'
3export * from './hls' 3export * from './hls'
4export * from './transcoder' 4export * from './transcoder'
5export * from './video-editor' 5export * from './video-studio'
diff --git a/server/tests/api/transcoding/video-editor.ts b/server/tests/api/transcoding/video-studio.ts
index f70bd49e6..ac1c0fc7e 100644
--- a/server/tests/api/transcoding/video-editor.ts
+++ b/server/tests/api/transcoding/video-studio.ts
@@ -1,7 +1,7 @@
1import { expect } from 'chai' 1import { expect } from 'chai'
2import { expectStartWith, getAllFiles } from '@server/tests/shared' 2import { expectStartWith, getAllFiles } from '@server/tests/shared'
3import { areObjectStorageTestsDisabled } from '@shared/core-utils' 3import { areObjectStorageTestsDisabled } from '@shared/core-utils'
4import { VideoEditorTask } from '@shared/models' 4import { VideoStudioTask } from '@shared/models'
5import { 5import {
6 cleanupTests, 6 cleanupTests,
7 createMultipleServers, 7 createMultipleServers,
@@ -10,11 +10,11 @@ import {
10 PeerTubeServer, 10 PeerTubeServer,
11 setAccessTokensToServers, 11 setAccessTokensToServers,
12 setDefaultVideoChannel, 12 setDefaultVideoChannel,
13 VideoEditorCommand, 13 VideoStudioCommand,
14 waitJobs 14 waitJobs
15} from '@shared/server-commands' 15} from '@shared/server-commands'
16 16
17describe('Test video editor', function () { 17describe('Test video studio', function () {
18 let servers: PeerTubeServer[] = [] 18 let servers: PeerTubeServer[] = []
19 let videoUUID: string 19 let videoUUID: string
20 20
@@ -39,8 +39,8 @@ describe('Test video editor', function () {
39 await waitJobs(servers) 39 await waitJobs(servers)
40 } 40 }
41 41
42 async function createTasks (tasks: VideoEditorTask[]) { 42 async function createTasks (tasks: VideoStudioTask[]) {
43 await servers[0].videoEditor.createEditionTasks({ videoId: videoUUID, tasks }) 43 await servers[0].videoStudio.createEditionTasks({ videoId: videoUUID, tasks })
44 await waitJobs(servers) 44 await waitJobs(servers)
45 } 45 }
46 46
@@ -56,7 +56,7 @@ describe('Test video editor', function () {
56 56
57 await servers[0].config.enableMinimumTranscoding() 57 await servers[0].config.enableMinimumTranscoding()
58 58
59 await servers[0].config.enableEditor() 59 await servers[0].config.enableStudio()
60 }) 60 })
61 61
62 describe('Cutting', function () { 62 describe('Cutting', function () {
@@ -276,7 +276,7 @@ describe('Test video editor', function () {
276 this.timeout(240_000) 276 this.timeout(240_000)
277 await renewVideo() 277 await renewVideo()
278 278
279 await createTasks(VideoEditorCommand.getComplexTask()) 279 await createTasks(VideoStudioCommand.getComplexTask())
280 280
281 for (const server of servers) { 281 for (const server of servers) {
282 await checkDuration(server, 9) 282 await checkDuration(server, 9)
@@ -303,7 +303,7 @@ describe('Test video editor', function () {
303 this.timeout(240_000) 303 this.timeout(240_000)
304 await renewVideo() 304 await renewVideo()
305 305
306 await createTasks(VideoEditorCommand.getComplexTask()) 306 await createTasks(VideoStudioCommand.getComplexTask())
307 307
308 for (const server of servers) { 308 for (const server of servers) {
309 const video = await server.videos.get({ id: videoUUID }) 309 const video = await server.videos.get({ id: videoUUID })
@@ -333,7 +333,7 @@ describe('Test video editor', function () {
333 const video = await servers[0].videos.get({ id: videoUUID }) 333 const video = await servers[0].videos.get({ id: videoUUID })
334 const oldFileUrls = getAllFiles(video).map(f => f.fileUrl) 334 const oldFileUrls = getAllFiles(video).map(f => f.fileUrl)
335 335
336 await createTasks(VideoEditorCommand.getComplexTask()) 336 await createTasks(VideoStudioCommand.getComplexTask())
337 337
338 for (const server of servers) { 338 for (const server of servers) {
339 const video = await server.videos.get({ id: videoUUID }) 339 const video = await server.videos.get({ id: videoUUID })