]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/tests/api/check-params/remotes.js
3 const series
= require('async/series')
5 const loginUtils
= require('../../utils/login')
6 const serversUtils
= require('../../utils/servers')
8 describe('Test remote videos API validators', function () {
11 // ---------------------------------------------------------------
13 before(function (done
) {
18 serversUtils
.flushTests(next
)
21 serversUtils
.runServer(1, function (server1
) {
28 loginUtils
.loginAndGetAccessToken(server
, function (err
, token
) {
30 server
.accessToken
= token
38 describe('When making a secure request', function () {
39 it('Should check a secure request')
42 describe('When adding a video', function () {
43 it('Should check when adding a video')
45 it('Should not add an existing remoteId and host pair')
48 describe('When removing a video', function () {
49 it('Should check when removing a video')
52 describe('When reporting abuse on a video', function () {
53 it('Should check when reporting a video abuse')
56 after(function (done
) {
57 process
.kill(-server
.app
.pid
)
59 // Keep the logs if the test failed
61 serversUtils
.flushTests(done
)