1 /* eslint-disable no-unused-expressions */
5 const series = require('async/series')
7 const loginUtils = require('../../utils/login')
8 const serversUtils = require('../../utils/servers')
10 describe('Test remote videos API validators', function () {
13 // ---------------------------------------------------------------
15 before(function (done) {
20 serversUtils.flushTests(next)
23 serversUtils.runServer(1, function (server1) {
30 loginUtils.loginAndGetAccessToken(server, function (err, token) {
32 server.accessToken = token
40 describe('When making a secure request', function () {
41 it('Should check a secure request')
44 describe('When adding a video', function () {
45 it('Should check when adding a video')
47 it('Should not add an existing uuid')
50 describe('When removing a video', function () {
51 it('Should check when removing a video')
54 describe('When reporting abuse on a video', function () {
55 it('Should check when reporting a video abuse')
58 after(function (done) {
59 process.kill(-server.app.pid)
61 // Keep the logs if the test failed
63 serversUtils.flushTests(done)