diff options
Diffstat (limited to 'server/tests/api/check-params/video-imports.ts')
-rw-r--r-- | server/tests/api/check-params/video-imports.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/tests/api/check-params/video-imports.ts b/server/tests/api/check-params/video-imports.ts index d09e473de..1a6b6075f 100644 --- a/server/tests/api/check-params/video-imports.ts +++ b/server/tests/api/check-params/video-imports.ts | |||
@@ -36,11 +36,11 @@ describe('Test video imports API validator', function () { | |||
36 | 36 | ||
37 | const username = 'user1' | 37 | const username = 'user1' |
38 | const password = 'my super password' | 38 | const password = 'my super password' |
39 | await server.usersCommand.create({ username: username, password: password }) | 39 | await server.users.create({ username: username, password: password }) |
40 | userAccessToken = await server.loginCommand.getAccessToken({ username, password }) | 40 | userAccessToken = await server.login.getAccessToken({ username, password }) |
41 | 41 | ||
42 | { | 42 | { |
43 | const { videoChannels } = await server.usersCommand.getMyInfo() | 43 | const { videoChannels } = await server.users.getMyInfo() |
44 | channelId = videoChannels[0].id | 44 | channelId = videoChannels[0].id |
45 | } | 45 | } |
46 | }) | 46 | }) |
@@ -162,10 +162,10 @@ describe('Test video imports API validator', function () { | |||
162 | username: 'fake', | 162 | username: 'fake', |
163 | password: 'fake_password' | 163 | password: 'fake_password' |
164 | } | 164 | } |
165 | await server.usersCommand.create({ username: user.username, password: user.password }) | 165 | await server.users.create({ username: user.username, password: user.password }) |
166 | 166 | ||
167 | const accessTokenUser = await server.loginCommand.getAccessToken(user) | 167 | const accessTokenUser = await server.login.getAccessToken(user) |
168 | const { videoChannels } = await server.usersCommand.getMyInfo({ token: accessTokenUser }) | 168 | const { videoChannels } = await server.users.getMyInfo({ token: accessTokenUser }) |
169 | const customChannelId = videoChannels[0].id | 169 | const customChannelId = videoChannels[0].id |
170 | 170 | ||
171 | const fields = { ...baseCorrectParams, channelId: customChannelId } | 171 | const fields = { ...baseCorrectParams, channelId: customChannelId } |
@@ -256,7 +256,7 @@ describe('Test video imports API validator', function () { | |||
256 | }) | 256 | }) |
257 | 257 | ||
258 | it('Should forbid to import http videos', async function () { | 258 | it('Should forbid to import http videos', async function () { |
259 | await server.configCommand.updateCustomSubConfig({ | 259 | await server.config.updateCustomSubConfig({ |
260 | newConfig: { | 260 | newConfig: { |
261 | import: { | 261 | import: { |
262 | videos: { | 262 | videos: { |
@@ -281,7 +281,7 @@ describe('Test video imports API validator', function () { | |||
281 | }) | 281 | }) |
282 | 282 | ||
283 | it('Should forbid to import torrent videos', async function () { | 283 | it('Should forbid to import torrent videos', async function () { |
284 | await server.configCommand.updateCustomSubConfig({ | 284 | await server.config.updateCustomSubConfig({ |
285 | newConfig: { | 285 | newConfig: { |
286 | import: { | 286 | import: { |
287 | videos: { | 287 | videos: { |