diff options
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r-- | server/tests/api/check-params/upload-quota.ts | 6 | ||||
-rw-r--r-- | server/tests/api/check-params/video-imports.ts | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/check-params/upload-quota.ts b/server/tests/api/check-params/upload-quota.ts index 2c73e6a19..bd8dce975 100644 --- a/server/tests/api/check-params/upload-quota.ts +++ b/server/tests/api/check-params/upload-quota.ts | |||
@@ -6,7 +6,7 @@ import { HttpStatusCode, randomInt } from '@shared/core-utils' | |||
6 | import { | 6 | import { |
7 | cleanupTests, | 7 | cleanupTests, |
8 | createSingleServer, | 8 | createSingleServer, |
9 | ImportsCommand, | 9 | FIXTURE_URLS, |
10 | PeerTubeServer, | 10 | PeerTubeServer, |
11 | setAccessTokensToServers, | 11 | setAccessTokensToServers, |
12 | setDefaultVideoChannel, | 12 | setDefaultVideoChannel, |
@@ -76,8 +76,8 @@ describe('Test upload quota', function () { | |||
76 | channelId: server.store.channel.id, | 76 | channelId: server.store.channel.id, |
77 | privacy: VideoPrivacy.PUBLIC | 77 | privacy: VideoPrivacy.PUBLIC |
78 | } | 78 | } |
79 | await server.imports.importVideo({ attributes: { ...baseAttributes, targetUrl: ImportsCommand.getGoodVideoUrl() } }) | 79 | await server.imports.importVideo({ attributes: { ...baseAttributes, targetUrl: FIXTURE_URLS.goodVideo } }) |
80 | await server.imports.importVideo({ attributes: { ...baseAttributes, magnetUri: ImportsCommand.getMagnetURI() } }) | 80 | await server.imports.importVideo({ attributes: { ...baseAttributes, magnetUri: FIXTURE_URLS.magnet } }) |
81 | await server.imports.importVideo({ attributes: { ...baseAttributes, torrentfile: 'video-720p.torrent' as any } }) | 81 | await server.imports.importVideo({ attributes: { ...baseAttributes, torrentfile: 'video-720p.torrent' as any } }) |
82 | 82 | ||
83 | await waitJobs([ server ]) | 83 | await waitJobs([ server ]) |
diff --git a/server/tests/api/check-params/video-imports.ts b/server/tests/api/check-params/video-imports.ts index 627f0c7ad..0209275ac 100644 --- a/server/tests/api/check-params/video-imports.ts +++ b/server/tests/api/check-params/video-imports.ts | |||
@@ -10,7 +10,7 @@ import { | |||
10 | checkBadStartPagination, | 10 | checkBadStartPagination, |
11 | cleanupTests, | 11 | cleanupTests, |
12 | createSingleServer, | 12 | createSingleServer, |
13 | ImportsCommand, | 13 | FIXTURE_URLS, |
14 | makeGetRequest, | 14 | makeGetRequest, |
15 | makePostBodyRequest, | 15 | makePostBodyRequest, |
16 | makeUploadRequest, | 16 | makeUploadRequest, |
@@ -70,7 +70,7 @@ describe('Test video imports API validator', function () { | |||
70 | 70 | ||
71 | before(function () { | 71 | before(function () { |
72 | baseCorrectParams = { | 72 | baseCorrectParams = { |
73 | targetUrl: ImportsCommand.getGoodVideoUrl(), | 73 | targetUrl: FIXTURE_URLS.goodVideo, |
74 | name: 'my super name', | 74 | name: 'my super name', |
75 | category: 5, | 75 | category: 5, |
76 | licence: 1, | 76 | licence: 1, |
@@ -297,7 +297,7 @@ describe('Test video imports API validator', function () { | |||
297 | }) | 297 | }) |
298 | 298 | ||
299 | let fields = omit(baseCorrectParams, 'targetUrl') | 299 | let fields = omit(baseCorrectParams, 'targetUrl') |
300 | fields = { ...fields, magnetUri: ImportsCommand.getMagnetURI() } | 300 | fields = { ...fields, magnetUri: FIXTURE_URLS.magnet } |
301 | 301 | ||
302 | await makePostBodyRequest({ | 302 | await makePostBodyRequest({ |
303 | url: server.url, | 303 | url: server.url, |