flushAndRunMultipleServers, flushTests, getVideosList, killallServers, ServerInfo, setAccessTokensToServers, uploadVideo,
wait
} from '../../utils/index'
-import { dateIsValid, webtorrentAdd } from '../../utils/miscs/miscs'
+import { dateIsValid } from '../../utils/miscs/miscs'
import { follow, getFollowersListPaginationAndSort, getFollowingListPaginationAndSort, unfollow } from '../../utils/server/follows'
import { userLogin } from '../../utils/users/login'
import { createUser } from '../../utils/users/users'
addVideoCommentReply, addVideoCommentThread, getVideoCommentThreads,
getVideoThreadComments
} from '../../utils/videos/video-comments'
-import { getVideo, rateVideo, testVideoImage } from '../../utils/videos/videos'
+import { rateVideo } from '../../utils/videos/videos'
const expect = chai.expect
description: 'super channel',
isLocal
},
- fixture: 'video_short.webm',
+ fixture: 'video_short1.webm',
files: [
{
resolution: 720,
description: '',
isLocal
},
- fixture: 'video_short3.webm',
+ fixture: 'video_short.webm',
files: [
{
resolution: 720,
/* tslint:disable:no-unused-expression */
-import 'mocha'
import * as chai from 'chai'
-const expect = chai.expect
-
-import {
- ServerInfo,
- flushTests,
- uploadVideo,
- getVideosList,
- setAccessTokensToServers,
- killallServers,
- getOEmbed
-} from '../../utils/index'
+import 'mocha'
+import { flushTests, getOEmbed, getVideosList, killallServers, ServerInfo, setAccessTokensToServers, uploadVideo } from '../../utils/index'
import { runServer } from '../../utils/server/servers'
+const expect = chai.expect
+
describe('Test services', function () {
let server: ServerInfo = null
const videoAttributes = {
name: 'my super name'
}
- const res = await uploadVideo(server.url, server.accessToken, videoAttributes)
- server.video = res.body.video
+ await uploadVideo(server.url, server.accessToken, videoAttributes)
+
+ const res = await getVideosList(server.url)
+ server.video = res.body.data[0]
})
it('Should have a valid oEmbed response', async function () {
import { join } from 'path'
import { VideoPrivacy } from '../../../../shared/models/videos'
import {
- dateIsValid,
- flushTests,
- getVideo,
- getVideoCategories,
- getVideoLanguages,
- getVideoLicences,
- getVideoPrivacies,
- getVideosList,
- getVideosListPagination,
- getVideosListSort,
- killallServers,
- rateVideo,
- readdirPromise,
- removeVideo,
- runServer,
- searchVideo,
- searchVideoWithPagination,
- searchVideoWithSort,
- ServerInfo,
- setAccessTokensToServers,
- testVideoImage,
- updateVideo,
- uploadVideo,
- wait,
- webtorrentAdd,
- viewVideo, completeVideoCheck, immutableAssign
+ completeVideoCheck, flushTests, getVideo, getVideoCategories, getVideoLanguages, getVideoLicences, getVideoPrivacies,
+ getVideosList, getVideosListPagination, getVideosListSort, killallServers, rateVideo, readdirPromise, removeVideo, runServer, searchVideo,
+ searchVideoWithPagination, searchVideoWithSort, ServerInfo, setAccessTokensToServers, testVideoImage, updateVideo, uploadVideo, viewVideo
} from '../../utils'
const expect = chai.expect