aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/update-host.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-05 16:37:50 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:16 +0200
commit329619b3453479f76c049816b7403b86e9d45cb5 (patch)
treee522940946402a4284d356f2cde8e0dcbe29b289 /server/tests/cli/update-host.ts
parenta6a79eae0d8564099b6957e76d7a18528d9ef124 (diff)
downloadPeerTube-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.ts14
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
3import 'mocha' 3import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { VideoDetails } from '../../../shared/models/videos'
6import { waitJobs } from '../../../shared/extra-utils/server/jobs'
7import { addVideoCommentThread } from '../../../shared/extra-utils/videos/video-comments'
8import { 5import {
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'
21import { waitJobs } from '../../../shared/extra-utils/server/jobs'
25import { getAccountsList } from '../../../shared/extra-utils/users/accounts' 22import { getAccountsList } from '../../../shared/extra-utils/users/accounts'
23import { addVideoCommentThread } from '../../../shared/extra-utils/videos/video-comments'
24import { VideoDetails } from '../../../shared/models/videos'
26 25
27const expect = chai.expect 26const 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 () {