]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/tests/api/check-params/remotes.js
Add email to users
[github/Chocobozzz/PeerTube.git] / server / tests / api / check-params / remotes.js
CommitLineData
efe923bc
C
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')
cddadde8
C
44
45 it('Should not add an existing remoteId and host pair')
efe923bc
C
46 })
47
48 describe('When removing a video', function () {
49 it('Should check when removing a video')
50 })
51
55fa55a9
C
52 describe('When reporting abuse on a video', function () {
53 it('Should check when reporting a video abuse')
54 })
55
efe923bc
C
56 after(function (done) {
57 process.kill(-server.app.pid)
58
59 // Keep the logs if the test failed
60 if (this.ok) {
61 serversUtils.flushTests(done)
62 } else {
63 done()
64 }
65 })
66})