Use global uuid instead of remoteId for videos
[oweals/peertube.git] / server / tests / api / check-params / remotes.js
1 /* eslint-disable no-unused-expressions */
2
3 'use strict'
4
5 const series = require('async/series')
6
7 const loginUtils = require('../../utils/login')
8 const serversUtils = require('../../utils/servers')
9
10 describe('Test remote videos API validators', function () {
11   let server = null
12
13   // ---------------------------------------------------------------
14
15   before(function (done) {
16     this.timeout(20000)
17
18     series([
19       function (next) {
20         serversUtils.flushTests(next)
21       },
22       function (next) {
23         serversUtils.runServer(1, function (server1) {
24           server = server1
25
26           next()
27         })
28       },
29       function (next) {
30         loginUtils.loginAndGetAccessToken(server, function (err, token) {
31           if (err) throw err
32           server.accessToken = token
33
34           next()
35         })
36       }
37     ], done)
38   })
39
40   describe('When making a secure request', function () {
41     it('Should check a secure request')
42   })
43
44   describe('When adding a video', function () {
45     it('Should check when adding a video')
46
47     it('Should not add an existing uuid')
48   })
49
50   describe('When removing a video', function () {
51     it('Should check when removing a video')
52   })
53
54   describe('When reporting abuse on a video', function () {
55     it('Should check when reporting a video abuse')
56   })
57
58   after(function (done) {
59     process.kill(-server.app.pid)
60
61     // Keep the logs if the test failed
62     if (this.ok) {
63       serversUtils.flushTests(done)
64     } else {
65       done()
66     }
67   })
68 })