mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Introduce videos command
This commit is contained in:
parent
7926c5f9b3
commit
d23dd9fbfc
108 changed files with 2484 additions and 3100 deletions
|
@ -3,15 +3,8 @@
|
|||
import 'mocha'
|
||||
import * as chai from 'chai'
|
||||
import { HttpStatusCode } from '@shared/core-utils'
|
||||
import {
|
||||
cleanupTests,
|
||||
flushAndRunServer,
|
||||
makeGetRequest,
|
||||
ServerInfo,
|
||||
setAccessTokensToServers,
|
||||
uploadVideo
|
||||
} from '../../shared/extra-utils'
|
||||
import { VideoPrivacy } from '../../shared/models/videos'
|
||||
import { cleanupTests, flushAndRunServer, makeGetRequest, ServerInfo, setAccessTokensToServers } from '@shared/extra-utils'
|
||||
import { VideoPrivacy } from '@shared/models'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
|
@ -165,9 +158,9 @@ describe('Test misc endpoints', function () {
|
|||
it('Should add videos, channel and accounts and get sitemap', async function () {
|
||||
this.timeout(35000)
|
||||
|
||||
await uploadVideo(server.url, server.accessToken, { name: 'video 1', nsfw: false })
|
||||
await uploadVideo(server.url, server.accessToken, { name: 'video 2', nsfw: false })
|
||||
await uploadVideo(server.url, server.accessToken, { name: 'video 3', privacy: VideoPrivacy.PRIVATE })
|
||||
await server.videosCommand.upload({ attributes: { name: 'video 1', nsfw: false } })
|
||||
await server.videosCommand.upload({ attributes: { name: 'video 2', nsfw: false } })
|
||||
await server.videosCommand.upload({ attributes: { name: 'video 3', privacy: VideoPrivacy.PRIVATE } })
|
||||
|
||||
await server.channelsCommand.create({ attributes: { name: 'channel1', displayName: 'channel 1' } })
|
||||
await server.channelsCommand.create({ attributes: { name: 'channel2', displayName: 'channel 2' } })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue