diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-08 16:49:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 6910f20f114b5bd020258a3a9a3f2117819a60c2 (patch) | |
tree | 0f50d33e20814b581dd9b2c175e511ac7a66f8df /server/tests/cli/peertube.ts | |
parent | 313228e9c3b5bcef5391228c9b949d05d32ad7bb (diff) | |
download | PeerTube-6910f20f114b5bd020258a3a9a3f2117819a60c2.tar.gz PeerTube-6910f20f114b5bd020258a3a9a3f2117819a60c2.tar.zst PeerTube-6910f20f114b5bd020258a3a9a3f2117819a60c2.zip |
Introduce import command
Diffstat (limited to 'server/tests/cli/peertube.ts')
-rw-r--r-- | server/tests/cli/peertube.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/tests/cli/peertube.ts b/server/tests/cli/peertube.ts index 0a4f54ffa..64a93ebb5 100644 --- a/server/tests/cli/peertube.ts +++ b/server/tests/cli/peertube.ts | |||
@@ -15,6 +15,7 @@ import { | |||
15 | getLocalIdByUUID, | 15 | getLocalIdByUUID, |
16 | getVideo, | 16 | getVideo, |
17 | getVideosList, | 17 | getVideosList, |
18 | ImportsCommand, | ||
18 | removeVideo, | 19 | removeVideo, |
19 | ServerInfo, | 20 | ServerInfo, |
20 | setAccessTokensToServers, | 21 | setAccessTokensToServers, |
@@ -23,7 +24,6 @@ import { | |||
23 | userLogin, | 24 | userLogin, |
24 | waitJobs | 25 | waitJobs |
25 | } from '../../../shared/extra-utils' | 26 | } from '../../../shared/extra-utils' |
26 | import { getYoutubeVideoUrl } from '../../../shared/extra-utils/videos/video-imports' | ||
27 | 27 | ||
28 | describe('Test CLI wrapper', function () { | 28 | describe('Test CLI wrapper', function () { |
29 | let server: ServerInfo | 29 | let server: ServerInfo |
@@ -122,7 +122,7 @@ describe('Test CLI wrapper', function () { | |||
122 | 122 | ||
123 | this.timeout(60000) | 123 | this.timeout(60000) |
124 | 124 | ||
125 | const params = `--target-url ${getYoutubeVideoUrl()} --channel-name user_channel` | 125 | const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} --channel-name user_channel` |
126 | await cliCommand.execWithEnv(`${cmd} import ${params}`) | 126 | await cliCommand.execWithEnv(`${cmd} import ${params}`) |
127 | }) | 127 | }) |
128 | 128 | ||
@@ -155,7 +155,8 @@ describe('Test CLI wrapper', function () { | |||
155 | 155 | ||
156 | this.timeout(60000) | 156 | this.timeout(60000) |
157 | 157 | ||
158 | const params = `--target-url ${getYoutubeVideoUrl()} --channel-name user_channel --video-name toto --nsfw --support support` | 158 | const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} ` + |
159 | `--channel-name user_channel --video-name toto --nsfw --support support` | ||
159 | await cliCommand.execWithEnv(`${cmd} import ${params}`) | 160 | await cliCommand.execWithEnv(`${cmd} import ${params}`) |
160 | 161 | ||
161 | await waitJobs([ server ]) | 162 | await waitJobs([ server ]) |