aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/multiple-servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-09 11:21:30 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commita54618880c394ad7571f3f3222dc96ec2dd10d9a (patch)
treec9f7b05e578abc2383bccd707c11438c61857c72 /server/tests/api/videos/multiple-servers.ts
parent57f879a540551c3b958b0991c8e1e3657a4481d8 (diff)
downloadPeerTube-a54618880c394ad7571f3f3222dc96ec2dd10d9a.tar.gz
PeerTube-a54618880c394ad7571f3f3222dc96ec2dd10d9a.tar.zst
PeerTube-a54618880c394ad7571f3f3222dc96ec2dd10d9a.zip
Introduce channels command
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r--server/tests/api/videos/multiple-servers.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index a8c8a889b..a59d5a858 100644
--- a/server/tests/api/videos/multiple-servers.ts
+++ b/server/tests/api/videos/multiple-servers.ts
@@ -5,7 +5,6 @@ import * as chai from 'chai'
5import * as request from 'supertest' 5import * as request from 'supertest'
6import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' 6import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
7import { 7import {
8 addVideoChannel,
9 buildAbsoluteFixturePath, 8 buildAbsoluteFixturePath,
10 checkTmpIsEmpty, 9 checkTmpIsEmpty,
11 checkVideoFilesWereRemoved, 10 checkVideoFilesWereRemoved,
@@ -17,7 +16,6 @@ import {
17 flushAndRunMultipleServers, 16 flushAndRunMultipleServers,
18 getLocalVideos, 17 getLocalVideos,
19 getVideo, 18 getVideo,
20 getVideoChannelsList,
21 getVideosList, 19 getVideosList,
22 rateVideo, 20 rateVideo,
23 removeVideo, 21 removeVideo,
@@ -64,9 +62,9 @@ describe('Test multiple servers', function () {
64 displayName: 'my channel', 62 displayName: 'my channel',
65 description: 'super channel' 63 description: 'super channel'
66 } 64 }
67 await addVideoChannel(servers[0].url, servers[0].accessToken, videoChannel) 65 await servers[0].channelsCommand.create({ attributes: videoChannel })
68 const channelRes = await getVideoChannelsList(servers[0].url, 0, 1) 66 const { data } = await servers[0].channelsCommand.list({ start: 0, count: 1 })
69 videoChannelId = channelRes.body.data[0].id 67 videoChannelId = data[0].id
70 } 68 }
71 69
72 // Server 1 and server 2 follow each other 70 // Server 1 and server 2 follow each other