diff options
Diffstat (limited to 'server/tests/plugins/plugin-helpers.ts')
-rw-r--r-- | server/tests/plugins/plugin-helpers.ts | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/server/tests/plugins/plugin-helpers.ts b/server/tests/plugins/plugin-helpers.ts index 0296d6eb7..0e0f61638 100644 --- a/server/tests/plugins/plugin-helpers.ts +++ b/server/tests/plugins/plugin-helpers.ts | |||
@@ -1,23 +1,25 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import { expect } from 'chai' | ||
5 | import { HttpStatusCode } from '@shared/core-utils' | ||
4 | import { | 6 | import { |
5 | checkVideoFilesWereRemoved, | 7 | checkVideoFilesWereRemoved, |
8 | cleanupTests, | ||
6 | doubleFollow, | 9 | doubleFollow, |
7 | getPluginTestPath, | 10 | flushAndRunMultipleServers, |
8 | getVideo, | 11 | getVideo, |
9 | installPlugin, | 12 | getVideosList, |
13 | makeGetRequest, | ||
10 | makePostBodyRequest, | 14 | makePostBodyRequest, |
15 | PluginsCommand, | ||
16 | ServerInfo, | ||
11 | setAccessTokensToServers, | 17 | setAccessTokensToServers, |
12 | uploadVideoAndGetId, | 18 | uploadVideoAndGetId, |
13 | viewVideo, | 19 | viewVideo, |
14 | getVideosList, | ||
15 | waitJobs, | 20 | waitJobs, |
16 | makeGetRequest | 21 | waitUntilLog |
17 | } from '../../../shared/extra-utils' | 22 | } from '@shared/extra-utils' |
18 | import { cleanupTests, flushAndRunMultipleServers, ServerInfo, waitUntilLog } from '../../../shared/extra-utils/server/servers' | ||
19 | import { expect } from 'chai' | ||
20 | import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' | ||
21 | 23 | ||
22 | function postCommand (server: ServerInfo, command: string, bodyArg?: object) { | 24 | function postCommand (server: ServerInfo, command: string, bodyArg?: object) { |
23 | const body = { command } | 25 | const body = { command } |
@@ -42,11 +44,7 @@ describe('Test plugin helpers', function () { | |||
42 | 44 | ||
43 | await doubleFollow(servers[0], servers[1]) | 45 | await doubleFollow(servers[0], servers[1]) |
44 | 46 | ||
45 | await installPlugin({ | 47 | await servers[0].pluginsCommand.install({ path: PluginsCommand.getPluginTestPath('-four') }) |
46 | url: servers[0].url, | ||
47 | accessToken: servers[0].accessToken, | ||
48 | path: getPluginTestPath('-four') | ||
49 | }) | ||
50 | }) | 48 | }) |
51 | 49 | ||
52 | describe('Logger', function () { | 50 | describe('Logger', function () { |