]>
Commit | Line | Data |
---|---|---|
1 | /* tslint:disable:no-unused-expression */ | |
2 | ||
3 | import 'mocha' | |
4 | ||
5 | import { | |
6 | ServerInfo, | |
7 | flushTests, | |
8 | runServer, | |
9 | setAccessTokensToServers, | |
10 | killallServers | |
11 | } from '../../utils' | |
12 | ||
13 | describe('Test remote videos API validators', function () { | |
14 | let server: ServerInfo | |
15 | ||
16 | // --------------------------------------------------------------- | |
17 | ||
18 | before(async function () { | |
19 | this.timeout(60000) | |
20 | ||
21 | await flushTests() | |
22 | ||
23 | server = await runServer(1) | |
24 | ||
25 | await setAccessTokensToServers([ server ]) | |
26 | }) | |
27 | ||
28 | describe('When making a secure request', async function () { | |
29 | it('Should check a secure request') | |
30 | }) | |
31 | ||
32 | describe('When adding a video', async function () { | |
33 | it('Should check when adding a video') | |
34 | ||
35 | it('Should not add an existing uuid') | |
36 | }) | |
37 | ||
38 | describe('When removing a video', async function () { | |
39 | it('Should check when removing a video') | |
40 | }) | |
41 | ||
42 | describe('When reporting abuse on a video', async function () { | |
43 | it('Should check when reporting a video abuse') | |
44 | }) | |
45 | ||
46 | after(async function () { | |
47 | killallServers([ server ]) | |
48 | ||
49 | // Keep the logs if the test failed | |
50 | if (this['ok']) { | |
51 | await flushTests() | |
52 | } | |
53 | }) | |
54 | }) |