aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/plugins
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/plugins
parent254d3579f5338f5fd775c17d15cdfc37078bcfb4 (diff)
downloadPeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.tar.gz
PeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.tar.zst
PeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.zip
Centralize test URLs
Diffstat (limited to 'server/tests/plugins')
-rw-r--r--server/tests/plugins/filter-hooks.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts
index 5d94303a9..df52bb3b5 100644
--- a/server/tests/plugins/filter-hooks.ts
+++ b/server/tests/plugins/filter-hooks.ts
@@ -5,12 +5,12 @@ import * as chai from 'chai'
5import { HttpStatusCode } from '@shared/core-utils' 5import { HttpStatusCode } from '@shared/core-utils'
6import { 6import {
7 cleanupTests, 7 cleanupTests,
8 doubleFollow,
9 createMultipleServers, 8 createMultipleServers,
10 ImportsCommand, 9 doubleFollow,
10 FIXTURE_URLS,
11 makeRawRequest, 11 makeRawRequest,
12 PluginsCommand,
13 PeerTubeServer, 12 PeerTubeServer,
13 PluginsCommand,
14 setAccessTokensToServers, 14 setAccessTokensToServers,
15 setDefaultVideoChannel, 15 setDefaultVideoChannel,
16 waitJobs 16 waitJobs
@@ -136,7 +136,7 @@ describe('Test plugin filter hooks', function () {
136 name: 'normal title', 136 name: 'normal title',
137 privacy: VideoPrivacy.PUBLIC, 137 privacy: VideoPrivacy.PUBLIC,
138 channelId: servers[0].store.channel.id, 138 channelId: servers[0].store.channel.id,
139 targetUrl: ImportsCommand.getGoodVideoUrl() + 'bad' 139 targetUrl: FIXTURE_URLS.goodVideo + 'bad'
140 } 140 }
141 await servers[0].imports.importVideo({ attributes, expectedStatus: HttpStatusCode.FORBIDDEN_403 }) 141 await servers[0].imports.importVideo({ attributes, expectedStatus: HttpStatusCode.FORBIDDEN_403 })
142 }) 142 })
@@ -161,7 +161,7 @@ describe('Test plugin filter hooks', function () {
161 name: 'title with bad word', 161 name: 'title with bad word',
162 privacy: VideoPrivacy.PUBLIC, 162 privacy: VideoPrivacy.PUBLIC,
163 channelId: servers[0].store.channel.id, 163 channelId: servers[0].store.channel.id,
164 targetUrl: ImportsCommand.getGoodVideoUrl() 164 targetUrl: FIXTURE_URLS.goodVideo
165 } 165 }
166 const body = await servers[0].imports.importVideo({ attributes }) 166 const body = await servers[0].imports.importVideo({ attributes })
167 videoImportId = body.id 167 videoImportId = body.id
@@ -273,7 +273,7 @@ describe('Test plugin filter hooks', function () {
273 273
274 const attributes = { 274 const attributes = {
275 name: 'video please blacklist me', 275 name: 'video please blacklist me',
276 targetUrl: ImportsCommand.getGoodVideoUrl(), 276 targetUrl: FIXTURE_URLS.goodVideo,
277 channelId: servers[0].store.channel.id 277 channelId: servers[0].store.channel.id
278 } 278 }
279 const body = await servers[0].imports.importVideo({ attributes }) 279 const body = await servers[0].imports.importVideo({ attributes })