diff options
Diffstat (limited to 'server/tests/plugins')
-rw-r--r-- | server/tests/plugins/action-hooks.ts | 2 | ||||
-rw-r--r-- | server/tests/plugins/filter-hooks.ts | 2 | ||||
-rw-r--r-- | server/tests/plugins/plugin-transcoding.ts | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/plugins/action-hooks.ts b/server/tests/plugins/action-hooks.ts index 39266c62f..5e9dc3515 100644 --- a/server/tests/plugins/action-hooks.ts +++ b/server/tests/plugins/action-hooks.ts | |||
@@ -95,7 +95,7 @@ describe('Test plugin action hooks', function () { | |||
95 | channelId: servers[0].videoChannel.id | 95 | channelId: servers[0].videoChannel.id |
96 | } | 96 | } |
97 | 97 | ||
98 | await servers[0].liveCommand.createLive({ fields: attributes }) | 98 | await servers[0].liveCommand.create({ fields: attributes }) |
99 | 99 | ||
100 | await checkHook('action:api.live-video.created') | 100 | await checkHook('action:api.live-video.created') |
101 | }) | 101 | }) |
diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts index e60bad38d..e938663da 100644 --- a/server/tests/plugins/filter-hooks.ts +++ b/server/tests/plugins/filter-hooks.ts | |||
@@ -155,7 +155,7 @@ describe('Test plugin filter hooks', function () { | |||
155 | channelId: servers[0].videoChannel.id | 155 | channelId: servers[0].videoChannel.id |
156 | } | 156 | } |
157 | 157 | ||
158 | await servers[0].liveCommand.createLive({ fields: attributes, expectedStatus: HttpStatusCode.FORBIDDEN_403 }) | 158 | await servers[0].liveCommand.create({ fields: attributes, expectedStatus: HttpStatusCode.FORBIDDEN_403 }) |
159 | }) | 159 | }) |
160 | 160 | ||
161 | it('Should run filter:api.video.pre-import-url.accept.result', async function () { | 161 | it('Should run filter:api.video.pre-import-url.accept.result', async function () { |
diff --git a/server/tests/plugins/plugin-transcoding.ts b/server/tests/plugins/plugin-transcoding.ts index 65282419e..ca4d9f962 100644 --- a/server/tests/plugins/plugin-transcoding.ts +++ b/server/tests/plugins/plugin-transcoding.ts | |||
@@ -26,7 +26,7 @@ async function createLiveWrapper (server: ServerInfo) { | |||
26 | privacy: VideoPrivacy.PUBLIC | 26 | privacy: VideoPrivacy.PUBLIC |
27 | } | 27 | } |
28 | 28 | ||
29 | const { uuid } = await server.liveCommand.createLive({ fields: liveAttributes }) | 29 | const { uuid } = await server.liveCommand.create({ fields: liveAttributes }) |
30 | 30 | ||
31 | return uuid | 31 | return uuid |
32 | } | 32 | } |
@@ -170,7 +170,7 @@ describe('Test transcoding plugins', function () { | |||
170 | const liveVideoId = await createLiveWrapper(server) | 170 | const liveVideoId = await createLiveWrapper(server) |
171 | 171 | ||
172 | await server.liveCommand.sendRTMPStreamInVideo({ videoId: liveVideoId, fixtureName: 'video_short2.webm' }) | 172 | await server.liveCommand.sendRTMPStreamInVideo({ videoId: liveVideoId, fixtureName: 'video_short2.webm' }) |
173 | await server.liveCommand.waitUntilLivePublished({ videoId: liveVideoId }) | 173 | await server.liveCommand.waitUntilPublished({ videoId: liveVideoId }) |
174 | await waitJobs([ server ]) | 174 | await waitJobs([ server ]) |
175 | 175 | ||
176 | await checkLiveFPS(liveVideoId, 'above', 20) | 176 | await checkLiveFPS(liveVideoId, 'above', 20) |
@@ -184,7 +184,7 @@ describe('Test transcoding plugins', function () { | |||
184 | const liveVideoId = await createLiveWrapper(server) | 184 | const liveVideoId = await createLiveWrapper(server) |
185 | 185 | ||
186 | await server.liveCommand.sendRTMPStreamInVideo({ videoId: liveVideoId, fixtureName: 'video_short2.webm' }) | 186 | await server.liveCommand.sendRTMPStreamInVideo({ videoId: liveVideoId, fixtureName: 'video_short2.webm' }) |
187 | await server.liveCommand.waitUntilLivePublished({ videoId: liveVideoId }) | 187 | await server.liveCommand.waitUntilPublished({ videoId: liveVideoId }) |
188 | await waitJobs([ server ]) | 188 | await waitJobs([ server ]) |
189 | 189 | ||
190 | await checkLiveFPS(liveVideoId, 'below', 12) | 190 | await checkLiveFPS(liveVideoId, 'below', 12) |
@@ -198,7 +198,7 @@ describe('Test transcoding plugins', function () { | |||
198 | const liveVideoId = await createLiveWrapper(server) | 198 | const liveVideoId = await createLiveWrapper(server) |
199 | 199 | ||
200 | await server.liveCommand.sendRTMPStreamInVideo({ videoId: liveVideoId, fixtureName: 'video_short2.webm' }) | 200 | await server.liveCommand.sendRTMPStreamInVideo({ videoId: liveVideoId, fixtureName: 'video_short2.webm' }) |
201 | await server.liveCommand.waitUntilLivePublished({ videoId: liveVideoId }) | 201 | await server.liveCommand.waitUntilPublished({ videoId: liveVideoId }) |
202 | await waitJobs([ server ]) | 202 | await waitJobs([ server ]) |
203 | 203 | ||
204 | await checkLiveFPS(liveVideoId, 'below', 6) | 204 | await checkLiveFPS(liveVideoId, 'below', 6) |
@@ -261,7 +261,7 @@ describe('Test transcoding plugins', function () { | |||
261 | const liveVideoId = await createLiveWrapper(server) | 261 | const liveVideoId = await createLiveWrapper(server) |
262 | 262 | ||
263 | await server.liveCommand.sendRTMPStreamInVideo({ videoId: liveVideoId, fixtureName: 'video_short2.webm' }) | 263 | await server.liveCommand.sendRTMPStreamInVideo({ videoId: liveVideoId, fixtureName: 'video_short2.webm' }) |
264 | await server.liveCommand.waitUntilLivePublished({ videoId: liveVideoId }) | 264 | await server.liveCommand.waitUntilPublished({ videoId: liveVideoId }) |
265 | await waitJobs([ server ]) | 265 | await waitJobs([ server ]) |
266 | 266 | ||
267 | const playlistUrl = `${server.url}/static/streaming-playlists/hls/${liveVideoId}/0.m3u8` | 267 | const playlistUrl = `${server.url}/static/streaming-playlists/hls/${liveVideoId}/0.m3u8` |