import * as request from 'supertest'
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
import {
- addVideoChannel,
buildAbsoluteFixturePath,
checkTmpIsEmpty,
checkVideoFilesWereRemoved,
flushAndRunMultipleServers,
getLocalVideos,
getVideo,
- getVideoChannelsList,
getVideosList,
rateVideo,
removeVideo,
displayName: 'my channel',
description: 'super channel'
}
- await addVideoChannel(servers[0].url, servers[0].accessToken, videoChannel)
- const channelRes = await getVideoChannelsList(servers[0].url, 0, 1)
- videoChannelId = channelRes.body.data[0].id
+ await servers[0].channelsCommand.create({ attributes: videoChannel })
+ const { data } = await servers[0].channelsCommand.list({ start: 0, count: 1 })
+ videoChannelId = data[0].id
}
// Server 1 and server 2 follow each other