diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-12 20:04:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-12 20:37:51 +0200 |
commit | 2186386cca113506791583cb07d6ccacba7af4e0 (patch) | |
tree | 3c214c0b5fbd64332624267fa6e51fd4a9cf6474 /server/tests/api/check-params/videos.ts | |
parent | 6ccdf3a23ecec5ba2eeaf487fd1fafdc7606b4bf (diff) | |
download | PeerTube-2186386cca113506791583cb07d6ccacba7af4e0.tar.gz PeerTube-2186386cca113506791583cb07d6ccacba7af4e0.tar.zst PeerTube-2186386cca113506791583cb07d6ccacba7af4e0.zip |
Add concept of video state, and add ability to wait transcoding before
publishing a video
Diffstat (limited to 'server/tests/api/check-params/videos.ts')
-rw-r--r-- | server/tests/api/check-params/videos.ts | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index bc6c7fc46..04bed3b44 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts | |||
@@ -175,6 +175,7 @@ describe('Test videos API validator', function () { | |||
175 | language: 'pt', | 175 | language: 'pt', |
176 | nsfw: false, | 176 | nsfw: false, |
177 | commentsEnabled: true, | 177 | commentsEnabled: true, |
178 | waitTranscoding: true, | ||
178 | description: 'my super description', | 179 | description: 'my super description', |
179 | support: 'my super support text', | 180 | support: 'my super support text', |
180 | tags: [ 'tag1', 'tag2' ], | 181 | tags: [ 'tag1', 'tag2' ], |
@@ -224,20 +225,6 @@ describe('Test videos API validator', function () { | |||
224 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 225 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |
225 | }) | 226 | }) |
226 | 227 | ||
227 | it('Should fail without nsfw attribute', async function () { | ||
228 | const fields = omit(baseCorrectParams, 'nsfw') | ||
229 | const attaches = baseCorrectAttaches | ||
230 | |||
231 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | ||
232 | }) | ||
233 | |||
234 | it('Should fail without commentsEnabled attribute', async function () { | ||
235 | const fields = omit(baseCorrectParams, 'commentsEnabled') | ||
236 | const attaches = baseCorrectAttaches | ||
237 | |||
238 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | ||
239 | }) | ||
240 | |||
241 | it('Should fail with a long description', async function () { | 228 | it('Should fail with a long description', async function () { |
242 | const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(2500) }) | 229 | const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(2500) }) |
243 | const attaches = baseCorrectAttaches | 230 | const attaches = baseCorrectAttaches |