diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/check-params/config.ts | 3 | ||||
-rw-r--r-- | server/tests/api/server/config.ts | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index 35cb333ef..2882ceb7c 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts | |||
@@ -103,6 +103,9 @@ describe('Test config API validators', function () { | |||
103 | live: { | 103 | live: { |
104 | enabled: true, | 104 | enabled: true, |
105 | 105 | ||
106 | allowReplay: false, | ||
107 | maxDuration: null, | ||
108 | |||
106 | transcoding: { | 109 | transcoding: { |
107 | enabled: true, | 110 | enabled: true, |
108 | threads: 4, | 111 | threads: 4, |
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index a46e179c2..a7f035362 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts | |||
@@ -79,6 +79,8 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) { | |||
79 | expect(data.transcoding.hls.enabled).to.be.true | 79 | expect(data.transcoding.hls.enabled).to.be.true |
80 | 80 | ||
81 | expect(data.live.enabled).to.be.false | 81 | expect(data.live.enabled).to.be.false |
82 | expect(data.live.allowReplay).to.be.true | ||
83 | expect(data.live.maxDuration).to.equal(1000 * 3600 * 5) | ||
82 | expect(data.live.transcoding.enabled).to.be.false | 84 | expect(data.live.transcoding.enabled).to.be.false |
83 | expect(data.live.transcoding.threads).to.equal(2) | 85 | expect(data.live.transcoding.threads).to.equal(2) |
84 | expect(data.live.transcoding.resolutions['240p']).to.be.false | 86 | expect(data.live.transcoding.resolutions['240p']).to.be.false |
@@ -162,6 +164,8 @@ function checkUpdatedConfig (data: CustomConfig) { | |||
162 | expect(data.transcoding.webtorrent.enabled).to.be.true | 164 | expect(data.transcoding.webtorrent.enabled).to.be.true |
163 | 165 | ||
164 | expect(data.live.enabled).to.be.true | 166 | expect(data.live.enabled).to.be.true |
167 | expect(data.live.allowReplay).to.be.false | ||
168 | expect(data.live.maxDuration).to.equal(5000) | ||
165 | expect(data.live.transcoding.enabled).to.be.true | 169 | expect(data.live.transcoding.enabled).to.be.true |
166 | expect(data.live.transcoding.threads).to.equal(4) | 170 | expect(data.live.transcoding.threads).to.equal(4) |
167 | expect(data.live.transcoding.resolutions['240p']).to.be.true | 171 | expect(data.live.transcoding.resolutions['240p']).to.be.true |
@@ -324,6 +328,8 @@ describe('Test config', function () { | |||
324 | }, | 328 | }, |
325 | live: { | 329 | live: { |
326 | enabled: true, | 330 | enabled: true, |
331 | allowReplay: false, | ||
332 | maxDuration: 5000, | ||
327 | transcoding: { | 333 | transcoding: { |
328 | enabled: true, | 334 | enabled: true, |
329 | threads: 4, | 335 | threads: 4, |