diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-11 09:52:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-11 09:52:14 +0200 |
commit | c57ad141a9ffb67f8e7d087b92eaacd2b653b562 (patch) | |
tree | bddd5d4457cb9c922275cc1d8bb71cd88b1d0293 /server/tests/api | |
parent | 784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428 (diff) | |
download | PeerTube-c57ad141a9ffb67f8e7d087b92eaacd2b653b562.tar.gz PeerTube-c57ad141a9ffb67f8e7d087b92eaacd2b653b562.tar.zst PeerTube-c57ad141a9ffb67f8e7d087b92eaacd2b653b562.zip |
Rename webtorrent config to web_videos
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/check-params/config.ts | 4 | ||||
-rw-r--r-- | server/tests/api/redundancy/redundancy.ts | 2 | ||||
-rw-r--r-- | server/tests/api/server/config.ts | 6 | ||||
-rw-r--r-- | server/tests/api/server/stats.ts | 2 | ||||
-rw-r--r-- | server/tests/api/transcoding/audio-only.ts | 2 | ||||
-rw-r--r-- | server/tests/api/transcoding/create-transcoding.ts | 4 | ||||
-rw-r--r-- | server/tests/api/transcoding/hls.ts | 2 | ||||
-rw-r--r-- | server/tests/api/transcoding/transcoder.ts | 10 | ||||
-rw-r--r-- | server/tests/api/transcoding/update-while-transcoding.ts | 2 | ||||
-rw-r--r-- | server/tests/api/transcoding/video-studio.ts | 2 | ||||
-rw-r--r-- | server/tests/api/users/user-videos.ts | 2 | ||||
-rw-r--r-- | server/tests/api/videos/video-imports.ts | 2 |
12 files changed, 20 insertions, 20 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index 7f825f79e..80b616ccf 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts | |||
@@ -126,7 +126,7 @@ describe('Test config API validators', function () { | |||
126 | '2160p': false | 126 | '2160p': false |
127 | }, | 127 | }, |
128 | alwaysTranscodeOriginalResolution: false, | 128 | alwaysTranscodeOriginalResolution: false, |
129 | webtorrent: { | 129 | webVideos: { |
130 | enabled: true | 130 | enabled: true |
131 | }, | 131 | }, |
132 | hls: { | 132 | hls: { |
@@ -353,7 +353,7 @@ describe('Test config API validators', function () { | |||
353 | hls: { | 353 | hls: { |
354 | enabled: false | 354 | enabled: false |
355 | }, | 355 | }, |
356 | webtorrent: { | 356 | web_videos: { |
357 | enabled: false | 357 | enabled: false |
358 | } | 358 | } |
359 | } | 359 | } |
diff --git a/server/tests/api/redundancy/redundancy.ts b/server/tests/api/redundancy/redundancy.ts index b35059c29..9a8cb4f51 100644 --- a/server/tests/api/redundancy/redundancy.ts +++ b/server/tests/api/redundancy/redundancy.ts | |||
@@ -60,7 +60,7 @@ async function createServers (strategy: VideoRedundancyStrategy | null, addition | |||
60 | 60 | ||
61 | const config = { | 61 | const config = { |
62 | transcoding: { | 62 | transcoding: { |
63 | webtorrent: { | 63 | web_videos: { |
64 | enabled: withWebVideo | 64 | enabled: withWebVideo |
65 | }, | 65 | }, |
66 | hls: { | 66 | hls: { |
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index efa7b50e3..0e700eddb 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts | |||
@@ -79,7 +79,7 @@ function checkInitialConfig (server: PeerTubeServer, data: CustomConfig) { | |||
79 | expect(data.transcoding.resolutions['1440p']).to.be.true | 79 | expect(data.transcoding.resolutions['1440p']).to.be.true |
80 | expect(data.transcoding.resolutions['2160p']).to.be.true | 80 | expect(data.transcoding.resolutions['2160p']).to.be.true |
81 | expect(data.transcoding.alwaysTranscodeOriginalResolution).to.be.true | 81 | expect(data.transcoding.alwaysTranscodeOriginalResolution).to.be.true |
82 | expect(data.transcoding.webtorrent.enabled).to.be.true | 82 | expect(data.transcoding.webVideos.enabled).to.be.true |
83 | expect(data.transcoding.hls.enabled).to.be.true | 83 | expect(data.transcoding.hls.enabled).to.be.true |
84 | 84 | ||
85 | expect(data.live.enabled).to.be.false | 85 | expect(data.live.enabled).to.be.false |
@@ -192,7 +192,7 @@ function checkUpdatedConfig (data: CustomConfig) { | |||
192 | expect(data.transcoding.resolutions['2160p']).to.be.false | 192 | expect(data.transcoding.resolutions['2160p']).to.be.false |
193 | expect(data.transcoding.alwaysTranscodeOriginalResolution).to.be.false | 193 | expect(data.transcoding.alwaysTranscodeOriginalResolution).to.be.false |
194 | expect(data.transcoding.hls.enabled).to.be.false | 194 | expect(data.transcoding.hls.enabled).to.be.false |
195 | expect(data.transcoding.webtorrent.enabled).to.be.true | 195 | expect(data.transcoding.webVideos.enabled).to.be.true |
196 | 196 | ||
197 | expect(data.live.enabled).to.be.true | 197 | expect(data.live.enabled).to.be.true |
198 | expect(data.live.allowReplay).to.be.true | 198 | expect(data.live.allowReplay).to.be.true |
@@ -344,7 +344,7 @@ const newCustomConfig: CustomConfig = { | |||
344 | '2160p': false | 344 | '2160p': false |
345 | }, | 345 | }, |
346 | alwaysTranscodeOriginalResolution: false, | 346 | alwaysTranscodeOriginalResolution: false, |
347 | webtorrent: { | 347 | webVideos: { |
348 | enabled: true | 348 | enabled: true |
349 | }, | 349 | }, |
350 | hls: { | 350 | hls: { |
diff --git a/server/tests/api/server/stats.ts b/server/tests/api/server/stats.ts index aad0d231a..a1bf189fa 100644 --- a/server/tests/api/server/stats.ts +++ b/server/tests/api/server/stats.ts | |||
@@ -194,7 +194,7 @@ describe('Test stats (excluding redundancy)', function () { | |||
194 | newConfig: { | 194 | newConfig: { |
195 | transcoding: { | 195 | transcoding: { |
196 | enabled: true, | 196 | enabled: true, |
197 | webtorrent: { | 197 | webVideos: { |
198 | enabled: true | 198 | enabled: true |
199 | }, | 199 | }, |
200 | hls: { | 200 | hls: { |
diff --git a/server/tests/api/transcoding/audio-only.ts b/server/tests/api/transcoding/audio-only.ts index aa1113fc1..f4cc012ef 100644 --- a/server/tests/api/transcoding/audio-only.ts +++ b/server/tests/api/transcoding/audio-only.ts | |||
@@ -37,7 +37,7 @@ describe('Test audio only video transcoding', function () { | |||
37 | hls: { | 37 | hls: { |
38 | enabled: true | 38 | enabled: true |
39 | }, | 39 | }, |
40 | webtorrent: { | 40 | web_videos: { |
41 | enabled: true | 41 | enabled: true |
42 | } | 42 | } |
43 | } | 43 | } |
diff --git a/server/tests/api/transcoding/create-transcoding.ts b/server/tests/api/transcoding/create-transcoding.ts index 21a63f547..9a891043c 100644 --- a/server/tests/api/transcoding/create-transcoding.ts +++ b/server/tests/api/transcoding/create-transcoding.ts | |||
@@ -165,7 +165,7 @@ function runTests (enableObjectStorage: boolean) { | |||
165 | enabled: true, | 165 | enabled: true, |
166 | resolutions: ConfigCommand.getCustomConfigResolutions(false), | 166 | resolutions: ConfigCommand.getCustomConfigResolutions(false), |
167 | 167 | ||
168 | webtorrent: { | 168 | webVideos: { |
169 | enabled: true | 169 | enabled: true |
170 | }, | 170 | }, |
171 | hls: { | 171 | hls: { |
@@ -201,7 +201,7 @@ function runTests (enableObjectStorage: boolean) { | |||
201 | enabled: true, | 201 | enabled: true, |
202 | resolutions: ConfigCommand.getCustomConfigResolutions(true), | 202 | resolutions: ConfigCommand.getCustomConfigResolutions(true), |
203 | 203 | ||
204 | webtorrent: { | 204 | webVideos: { |
205 | enabled: true | 205 | enabled: true |
206 | }, | 206 | }, |
207 | hls: { | 207 | hls: { |
diff --git a/server/tests/api/transcoding/hls.ts b/server/tests/api/transcoding/hls.ts index ba889e718..0d2fc0fba 100644 --- a/server/tests/api/transcoding/hls.ts +++ b/server/tests/api/transcoding/hls.ts | |||
@@ -136,7 +136,7 @@ describe('Test HLS videos', function () { | |||
136 | hls: { | 136 | hls: { |
137 | enabled: true | 137 | enabled: true |
138 | }, | 138 | }, |
139 | webtorrent: { | 139 | webVideos: { |
140 | enabled: false | 140 | enabled: false |
141 | } | 141 | } |
142 | } | 142 | } |
diff --git a/server/tests/api/transcoding/transcoder.ts b/server/tests/api/transcoding/transcoder.ts index 36e1d90f4..b899b736d 100644 --- a/server/tests/api/transcoding/transcoder.ts +++ b/server/tests/api/transcoding/transcoder.ts | |||
@@ -31,7 +31,7 @@ function updateConfigForTranscoding (server: PeerTubeServer) { | |||
31 | allowAdditionalExtensions: true, | 31 | allowAdditionalExtensions: true, |
32 | allowAudioFiles: true, | 32 | allowAudioFiles: true, |
33 | hls: { enabled: true }, | 33 | hls: { enabled: true }, |
34 | webtorrent: { enabled: true }, | 34 | webVideos: { enabled: true }, |
35 | resolutions: { | 35 | resolutions: { |
36 | '0p': false, | 36 | '0p': false, |
37 | '144p': true, | 37 | '144p': true, |
@@ -333,7 +333,7 @@ describe('Test video transcoding', function () { | |||
333 | newConfig: { | 333 | newConfig: { |
334 | transcoding: { | 334 | transcoding: { |
335 | hls: { enabled: true }, | 335 | hls: { enabled: true }, |
336 | webtorrent: { enabled: true }, | 336 | webVideos: { enabled: true }, |
337 | resolutions: { | 337 | resolutions: { |
338 | '0p': false, | 338 | '0p': false, |
339 | '144p': false, | 339 | '144p': false, |
@@ -405,7 +405,7 @@ describe('Test video transcoding', function () { | |||
405 | newConfig: { | 405 | newConfig: { |
406 | transcoding: { | 406 | transcoding: { |
407 | hls: { enabled: true }, | 407 | hls: { enabled: true }, |
408 | webtorrent: { enabled: true }, | 408 | webVideos: { enabled: true }, |
409 | resolutions: { | 409 | resolutions: { |
410 | '0p': true, | 410 | '0p': true, |
411 | '144p': false, | 411 | '144p': false, |
@@ -586,7 +586,7 @@ describe('Test video transcoding', function () { | |||
586 | '1440p': true, | 586 | '1440p': true, |
587 | '2160p': true | 587 | '2160p': true |
588 | }, | 588 | }, |
589 | webtorrent: { enabled: true }, | 589 | web_videos: { enabled: true }, |
590 | hls: { enabled: true } | 590 | hls: { enabled: true } |
591 | } | 591 | } |
592 | } | 592 | } |
@@ -728,7 +728,7 @@ describe('Test video transcoding', function () { | |||
728 | transcoding: { | 728 | transcoding: { |
729 | enabled: true, | 729 | enabled: true, |
730 | hls: { enabled: true }, | 730 | hls: { enabled: true }, |
731 | webtorrent: { enabled: true }, | 731 | webVideos: { enabled: true }, |
732 | resolutions: { | 732 | resolutions: { |
733 | '0p': false, | 733 | '0p': false, |
734 | '144p': false, | 734 | '144p': false, |
diff --git a/server/tests/api/transcoding/update-while-transcoding.ts b/server/tests/api/transcoding/update-while-transcoding.ts index 2e0edc770..cfb4fa0cc 100644 --- a/server/tests/api/transcoding/update-while-transcoding.ts +++ b/server/tests/api/transcoding/update-while-transcoding.ts | |||
@@ -121,7 +121,7 @@ describe('Test update video privacy while transcoding', function () { | |||
121 | hls: { | 121 | hls: { |
122 | enabled: true | 122 | enabled: true |
123 | }, | 123 | }, |
124 | webtorrent: { | 124 | webVideos: { |
125 | enabled: false | 125 | enabled: false |
126 | } | 126 | } |
127 | } | 127 | } |
diff --git a/server/tests/api/transcoding/video-studio.ts b/server/tests/api/transcoding/video-studio.ts index 2595d3cdb..ba68f8e24 100644 --- a/server/tests/api/transcoding/video-studio.ts +++ b/server/tests/api/transcoding/video-studio.ts | |||
@@ -277,7 +277,7 @@ describe('Test video studio', function () { | |||
277 | await servers[0].config.updateExistingSubConfig({ | 277 | await servers[0].config.updateExistingSubConfig({ |
278 | newConfig: { | 278 | newConfig: { |
279 | transcoding: { | 279 | transcoding: { |
280 | webtorrent: { | 280 | webVideos: { |
281 | enabled: false | 281 | enabled: false |
282 | } | 282 | } |
283 | } | 283 | } |
diff --git a/server/tests/api/users/user-videos.ts b/server/tests/api/users/user-videos.ts index 70f22e2eb..77226e48e 100644 --- a/server/tests/api/users/user-videos.ts +++ b/server/tests/api/users/user-videos.ts | |||
@@ -189,7 +189,7 @@ describe('Test user videos', function () { | |||
189 | 189 | ||
190 | { | 190 | { |
191 | const config = await server.config.getCustomConfig() | 191 | const config = await server.config.getCustomConfig() |
192 | config.transcoding.webtorrent.enabled = false | 192 | config.transcoding.webVideos.enabled = false |
193 | config.transcoding.hls.enabled = true | 193 | config.transcoding.hls.enabled = true |
194 | config.transcoding.enabled = true | 194 | config.transcoding.enabled = true |
195 | await server.config.updateCustomSubConfig({ newConfig: config }) | 195 | await server.config.updateCustomSubConfig({ newConfig: config }) |
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts index 4f3149d52..b78b4f344 100644 --- a/server/tests/api/videos/video-imports.ts +++ b/server/tests/api/videos/video-imports.ts | |||
@@ -328,7 +328,7 @@ describe('Test video imports', function () { | |||
328 | '1440p': false, | 328 | '1440p': false, |
329 | '2160p': false | 329 | '2160p': false |
330 | }, | 330 | }, |
331 | webtorrent: { enabled: true }, | 331 | webVideos: { enabled: true }, |
332 | hls: { enabled: false } | 332 | hls: { enabled: false } |
333 | } | 333 | } |
334 | } | 334 | } |