aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 10:19:16 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit59bbcced37005dd511daca9bd58ae2998cb931b1 (patch)
tree60d1ba7a8b2eac691f27c25cb5e2d0ae3a510c9d /server/tests/cli
parent254d3579f5338f5fd775c17d15cdfc37078bcfb4 (diff)
downloadPeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.tar.gz
PeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.tar.zst
PeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.zip
Centralize test URLs
Diffstat (limited to 'server/tests/cli')
-rw-r--r--server/tests/cli/peertube.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/cli/peertube.ts b/server/tests/cli/peertube.ts
index f19b6ae22..f2a984962 100644
--- a/server/tests/cli/peertube.ts
+++ b/server/tests/cli/peertube.ts
@@ -7,9 +7,9 @@ import {
7 buildAbsoluteFixturePath, 7 buildAbsoluteFixturePath,
8 cleanupTests, 8 cleanupTests,
9 CLICommand, 9 CLICommand,
10 doubleFollow,
11 createSingleServer, 10 createSingleServer,
12 ImportsCommand, 11 doubleFollow,
12 FIXTURE_URLS,
13 PeerTubeServer, 13 PeerTubeServer,
14 setAccessTokensToServers, 14 setAccessTokensToServers,
15 testHelloWorldRegisteredSettings, 15 testHelloWorldRegisteredSettings,
@@ -117,7 +117,7 @@ describe('Test CLI wrapper', function () {
117 117
118 this.timeout(60000) 118 this.timeout(60000)
119 119
120 const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} --channel-name user_channel` 120 const params = `--target-url ${FIXTURE_URLS.youtube} --channel-name user_channel`
121 await cliCommand.execWithEnv(`${cmd} import ${params}`) 121 await cliCommand.execWithEnv(`${cmd} import ${params}`)
122 }) 122 })
123 123
@@ -148,7 +148,7 @@ describe('Test CLI wrapper', function () {
148 148
149 this.timeout(60000) 149 this.timeout(60000)
150 150
151 const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} ` + 151 const params = `--target-url ${FIXTURE_URLS.youtube} ` +
152 `--channel-name user_channel --video-name toto --nsfw --support support` 152 `--channel-name user_channel --video-name toto --nsfw --support support`
153 await cliCommand.execWithEnv(`${cmd} import ${params}`) 153 await cliCommand.execWithEnv(`${cmd} import ${params}`)
154 154