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/utils/videos/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/utils/videos/videos.ts')
-rw-r--r-- | server/tests/utils/videos/videos.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index ab0ce12ec..2c1d20ef1 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts | |||
@@ -27,6 +27,7 @@ type VideoAttributes = { | |||
27 | language?: string | 27 | language?: string |
28 | nsfw?: boolean | 28 | nsfw?: boolean |
29 | commentsEnabled?: boolean | 29 | commentsEnabled?: boolean |
30 | waitTranscoding?: boolean | ||
30 | description?: string | 31 | description?: string |
31 | tags?: string[] | 32 | tags?: string[] |
32 | channelId?: number | 33 | channelId?: number |
@@ -326,6 +327,7 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg | |||
326 | language: 'zh', | 327 | language: 'zh', |
327 | channelId: defaultChannelId, | 328 | channelId: defaultChannelId, |
328 | nsfw: true, | 329 | nsfw: true, |
330 | waitTranscoding: false, | ||
329 | description: 'my super description', | 331 | description: 'my super description', |
330 | support: 'my super support text', | 332 | support: 'my super support text', |
331 | tags: [ 'tag' ], | 333 | tags: [ 'tag' ], |
@@ -341,6 +343,7 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg | |||
341 | .field('name', attributes.name) | 343 | .field('name', attributes.name) |
342 | .field('nsfw', JSON.stringify(attributes.nsfw)) | 344 | .field('nsfw', JSON.stringify(attributes.nsfw)) |
343 | .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled)) | 345 | .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled)) |
346 | .field('waitTranscoding', JSON.stringify(attributes.waitTranscoding)) | ||
344 | .field('privacy', attributes.privacy.toString()) | 347 | .field('privacy', attributes.privacy.toString()) |
345 | .field('channelId', attributes.channelId) | 348 | .field('channelId', attributes.channelId) |
346 | 349 | ||