diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-05 16:37:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:16 +0200 |
commit | 329619b3453479f76c049816b7403b86e9d45cb5 (patch) | |
tree | e522940946402a4284d356f2cde8e0dcbe29b289 /server/tests/cli/update-host.ts | |
parent | a6a79eae0d8564099b6957e76d7a18528d9ef124 (diff) | |
download | PeerTube-329619b3453479f76c049816b7403b86e9d45cb5.tar.gz PeerTube-329619b3453479f76c049816b7403b86e9d45cb5.tar.zst PeerTube-329619b3453479f76c049816b7403b86e9d45cb5.zip |
Introduce CLI command
Diffstat (limited to 'server/tests/cli/update-host.ts')
-rw-r--r-- | server/tests/cli/update-host.ts | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/server/tests/cli/update-host.ts b/server/tests/cli/update-host.ts index 2070f16f5..1b1a76aef 100644 --- a/server/tests/cli/update-host.ts +++ b/server/tests/cli/update-host.ts | |||
@@ -2,27 +2,26 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { VideoDetails } from '../../../shared/models/videos' | ||
6 | import { waitJobs } from '../../../shared/extra-utils/server/jobs' | ||
7 | import { addVideoCommentThread } from '../../../shared/extra-utils/videos/video-comments' | ||
8 | import { | 5 | import { |
9 | addVideoChannel, | 6 | addVideoChannel, |
10 | cleanupTests, | 7 | cleanupTests, |
11 | createUser, | 8 | createUser, |
12 | execCLI, | ||
13 | flushAndRunServer, | 9 | flushAndRunServer, |
14 | getEnvCli, | ||
15 | getVideo, | 10 | getVideo, |
16 | getVideoChannelsList, | 11 | getVideoChannelsList, |
17 | getVideosList, | 12 | getVideosList, |
18 | killallServers, | 13 | killallServers, |
19 | makeActivityPubGetRequest, | 14 | makeActivityPubGetRequest, |
20 | parseTorrentVideo, reRunServer, | 15 | parseTorrentVideo, |
16 | reRunServer, | ||
21 | ServerInfo, | 17 | ServerInfo, |
22 | setAccessTokensToServers, | 18 | setAccessTokensToServers, |
23 | uploadVideo | 19 | uploadVideo |
24 | } from '../../../shared/extra-utils' | 20 | } from '../../../shared/extra-utils' |
21 | import { waitJobs } from '../../../shared/extra-utils/server/jobs' | ||
25 | import { getAccountsList } from '../../../shared/extra-utils/users/accounts' | 22 | import { getAccountsList } from '../../../shared/extra-utils/users/accounts' |
23 | import { addVideoCommentThread } from '../../../shared/extra-utils/videos/video-comments' | ||
24 | import { VideoDetails } from '../../../shared/models/videos' | ||
26 | 25 | ||
27 | const expect = chai.expect | 26 | const expect = chai.expect |
28 | 27 | ||
@@ -72,8 +71,7 @@ describe('Test update host scripts', function () { | |||
72 | // Run server with standard configuration | 71 | // Run server with standard configuration |
73 | await reRunServer(server) | 72 | await reRunServer(server) |
74 | 73 | ||
75 | const env = getEnvCli(server) | 74 | await server.cliCommand.execWithEnv(`npm run update-host`) |
76 | await execCLI(`${env} npm run update-host`) | ||
77 | }) | 75 | }) |
78 | 76 | ||
79 | it('Should have updated videos url', async function () { | 77 | it('Should have updated videos url', async function () { |