aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/videos.ts
Commit message (Collapse)AuthorAgeFilesLines
* Move test functions outside extra-utilsChocobozzz2021-12-171-7/+3
|
* shared/ typescript types dir server-commandsChocobozzz2021-12-171-1/+1
|
* Add channel filters for my videos/followersChocobozzz2021-10-201-0/+14
|
* Refactor requestsChocobozzz2021-07-201-18/+18
|
* Use an object to represent a serverChocobozzz2021-07-201-4/+4
|
* Shorter server command namesChocobozzz2021-07-201-17/+17
|
* Introduce videos commandChocobozzz2021-07-201-58/+51
|
* Introduce user commandChocobozzz2021-07-201-10/+8
|
* Introduce login commandChocobozzz2021-07-201-4/+3
|
* Introduce server commandsChocobozzz2021-07-201-35/+40
|
* Support short uuid for GET video/playlistChocobozzz2021-06-291-26/+26
|
* Refactor server errors handlerChocobozzz2021-06-021-1/+77
|
* Resumable video uploads (#3933)kontrollanten2021-05-101-202/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: resumable video uploads relates to #324 * fix review comments * video upload: error handling * fix audio upload * fixes after self review * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/middlewares/validators/videos/videos.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * update after code review * refactor upload route - restore multipart upload route - move resumable to dedicated upload-resumable route - move checks to middleware - do not leak internal fs structure in response * fix yarn.lock upon rebase * factorize addVideo for reuse in both endpoints * add resumable upload API to openapi spec * add initial test and test helper for resumable upload * typings for videoAddResumable middleware * avoid including aws and google packages via node-uploadx, by only including uploadx/core * rename ex-isAudioBg to more explicit name mentioning it is a preview file for audio * add video-upload-tmp-folder-cleaner job * stronger typing of video upload middleware * reduce dependency to @uploadx/core * add audio upload test * refactor resumable uploads cleanup from job to scheduler * refactor resumable uploads scheduler to compare to last execution time * make resumable upload validator to always cleanup on failure * move legacy upload request building outside of uploadVideo test helper * filter upload-resumable middlewares down to POST, PUT, DELETE also begin to type metadata * merge add duration functions * stronger typings and documentation for uploadx behaviour, move init validator up * refactor(client/video-edit): options > uploadxOptions * refactor(client/video-edit): remove obsolete else * scheduler/remove-dangling-resum: rename tag * refactor(server/video): add UploadVideoFiles type * refactor(mw/validators): restructure eslint disable * refactor(mw/validators/videos): rename import * refactor(client/vid-upload): rename html elem id * refactor(sched/remove-dangl): move fn to method * refactor(mw/async): add method typing * refactor(mw/vali/video): double quote > single * refactor(server/upload-resum): express use > all * proper http methud enum server/middlewares/async.ts * properly type http methods * factorize common video upload validation steps * add check for maximum partially uploaded file size * fix audioBg use * fix extname(filename) in addVideo * document parameters for uploadx's resumable protocol * clear META files in scheduler * last audio refactor before cramming preview in the initial POST form data * refactor as mulitpart/form-data initial post request this allows preview/thumbnail uploads alongside the initial request, and cleans up the upload form * Add more tests for resumable uploads * Refactor remove dangling resumable uploads * Prepare changelog * Add more resumable upload tests * Remove user quota check for resumable uploads * Fix upload error handler * Update nginx template for upload-resumable * Cleanup comment * Remove unused express methods * Prefer to use got instead of raw http * Don't retry on error 500 Co-authored-by: Rigel Kent <par@rigelk.eu> Co-authored-by: Rigel Kent <sendmemail@rigelk.eu> Co-authored-by: Chocobozzz <me@florianbigard.com>
* Fix testsChocobozzz2021-01-261-8/+8
|
* emit more specific status codes on video upload (#3423)Rigel Kent2020-12-081-2/+16
| | | | | - reduce http status codes list to potentially useful codes - convert more codes to typed ones - factorize html generator for error responses
* replace numbers with typed http status codes (#3409)Rigel Kent2020-12-071-22/+35
|
* Move to eslintcontainChocobozzz2020-02-031-19/+19
|
* Add ability to skip count queryChocobozzz2020-01-081-1/+5
|
* Fix broken playlist apiChocobozzz2019-08-011-1/+1
|
* Use test wrapper exit functionChocobozzz2019-04-241-24/+36
|
* Cleanup testsChocobozzz2019-04-241-10/+3
|
* Shared utils -> extra-utilsChocobozzz2019-04-241-3/+3
| | | | Because they need dev dependencies
* Add user adminFlagsChocobozzz2019-04-151-2/+2
|
* add quarantine videos feature (#1637)Josh Morel2019-04-021-1/+2
| | | | | | | | | | | | | | | | | | | | * add quarantine videos feature * increase Notification settings test timeout to 20000ms. was completing 7000 locally but timing out after 10000 on travis * fix quarantine video test issues -propagate misspelling -remove skip from server/tests/client.ts * WIP use blacklist for moderator video approval instead of video.quarantine boolean * finish auto-blacklist feature
* Add originallyPublishedAt unit testsChocobozzz2019-02-111-1/+15
|
* Merge branch 'develop' into pr/1217Chocobozzz2019-02-111-6/+15
|\
| * Support additional video extensionsChocobozzz2018-12-111-1/+6
| |
| * Move utils to /sharedbuoyantair2018-10-291-3/+7
| | | | | | | | | | | | | | Move utils used by /server/tools/* & /server/tests/**/* into /shared folder. Issue: #1336
| * Feature/description support fields length 1000 (#1267)BRAINS YUM2018-10-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix migrations to not use config constant values as it can introduce bugs later when they change; (fixes #1259) remove constant fields imports from migrations * add migrations to update description and support fields to 1000 (fixes #1258) * fix client/server account and video_channel description/support fields to be max len 1000 (fixes #1258); fix test Should fail with a too long description; fix test Should fail with a long description; fix test Should fail with a long description; Remove USER.SUPPORT from constants since that field no longer exists; null not false, in migrations/0280-description-support.ts; video support field 1000, oops; * rename migration 0280-description-support.ts -> 0285-description-support.ts; update video support maxlength text
* | Rename downloadingEnabled property to downloadEnabledLucas Declercq2018-10-081-2/+2
| |
* | Add downloadingEnabled property to video modelLucas Declercq2018-10-061-0/+2
|/
* Add ability to search a video with an URLChocobozzz2018-08-271-3/+3
|
* Fix images size limitChocobozzz2018-06-221-4/+4
|
* Add ability to schedule video publicationChocobozzz2018-06-151-0/+29
|
* Add concept of video state, and add ability to wait transcoding beforeChocobozzz2018-06-121-14/+1
| | | | publishing a video
* Move fixtures in tests/Chocobozzz2018-06-071-16/+16
|
* Only use account name in routesChocobozzz2018-05-251-3/+3
|
* Fix video channel update with an admin accountChocobozzz2018-05-171-1/+1
|
* Add check channel update test in video updateChocobozzz2018-05-111-0/+6
|
* Fix testsChocobozzz2018-05-091-2/+2
|
* Account/channel descriptions are not required anymoreChocobozzz2018-05-091-26/+0
|
* Implement video channel viewsChocobozzz2018-04-251-1/+1
|
* Video channel API routes refractorChocobozzz2018-04-251-3/+70
|
* Use ISO 639 for languagesChocobozzz2018-04-231-4/+4
|
* Add ability to update another user videoChocobozzz2018-02-221-6/+22
|
* Implement support field in video and video channelChocobozzz2018-02-151-2/+16
|
* Add ability to set video thumbnail/previewChocobozzz2018-02-141-23/+127
|
* Increase tests timeoutChocobozzz2018-01-181-1/+1
|
* Add ability to disable video commentsChocobozzz2018-01-031-0/+22
|
* Improve check videos parameters testsChocobozzz2017-12-281-223/+151
|