aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/remotes.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/remotes.js')
-rw-r--r--server/tests/api/check-params/remotes.js60
1 files changed, 60 insertions, 0 deletions
diff --git a/server/tests/api/check-params/remotes.js b/server/tests/api/check-params/remotes.js
new file mode 100644
index 000000000..30ba3b697
--- /dev/null
+++ b/server/tests/api/check-params/remotes.js
@@ -0,0 +1,60 @@
1'use strict'
2
3const series = require('async/series')
4
5const loginUtils = require('../../utils/login')
6const serversUtils = require('../../utils/servers')
7
8describe('Test remote videos API validators', function () {
9 let server = null
10
11 // ---------------------------------------------------------------
12
13 before(function (done) {
14 this.timeout(20000)
15
16 series([
17 function (next) {
18 serversUtils.flushTests(next)
19 },
20 function (next) {
21 serversUtils.runServer(1, function (server1) {
22 server = server1
23
24 next()
25 })
26 },
27 function (next) {
28 loginUtils.loginAndGetAccessToken(server, function (err, token) {
29 if (err) throw err
30 server.accessToken = token
31
32 next()
33 })
34 }
35 ], done)
36 })
37
38 describe('When making a secure request', function () {
39 it('Should check a secure request')
40 })
41
42 describe('When adding a video', function () {
43 it('Should check when adding a video')
44 })
45
46 describe('When removing a video', function () {
47 it('Should check when removing a video')
48 })
49
50 after(function (done) {
51 process.kill(-server.app.pid)
52
53 // Keep the logs if the test failed
54 if (this.ok) {
55 serversUtils.flushTests(done)
56 } else {
57 done()
58 }
59 })
60})