X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Fconfig.ts;h=004aa65b37ac2bbb5d8ae6ed4eaed0dfee53f122;hb=213e30ef90806369529684ac9c247d73b8dc7928;hp=08576c3ae664c167a71513cf24782548181863c0;hpb=2d53be0267acc49cda46707b885096193a1f4e9c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index 08576c3ae..004aa65b3 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts @@ -41,8 +41,10 @@ describe('Test config API validators', function () { categories: [ 1, 2 ], isNSFW: true, - defaultClientRoute: '/videos/recently-added', defaultNSFWPolicy: 'blur', + + defaultClientRoute: '/videos/recently-added', + customizations: { javascript: 'alert("coucou")', css: 'body { background-color: red; }' @@ -63,6 +65,9 @@ describe('Test config API validators', function () { }, captions: { size: 3 + }, + torrents: { + size: 4 } }, signup: { @@ -84,7 +89,9 @@ describe('Test config API validators', function () { enabled: true, allowAdditionalExtensions: true, allowAudioFiles: true, + concurrency: 1, threads: 1, + profile: 'vod_profile', resolutions: { '0p': false, '240p': false, @@ -92,6 +99,7 @@ describe('Test config API validators', function () { '480p': true, '720p': false, '1080p': false, + '1440p': false, '2160p': false }, webtorrent: { @@ -105,25 +113,28 @@ describe('Test config API validators', function () { enabled: true, allowReplay: false, - maxDuration: null, + maxDuration: 30, maxInstanceLives: -1, maxUserLives: 50, transcoding: { enabled: true, threads: 4, + profile: 'live_profile', resolutions: { '240p': true, '360p': true, '480p': true, '720p': true, '1080p': true, + '1440p': true, '2160p': true } } }, import: { videos: { + concurrency: 1, http: { enabled: false }, @@ -132,6 +143,14 @@ describe('Test config API validators', function () { } } }, + trending: { + videos: { + algorithms: { + enabled: [ 'best', 'hot', 'most-viewed', 'most-liked' ], + default: 'most-viewed' + } + } + }, autoBlacklist: { videos: { ofUsers: {