aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/multiple-servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-12 11:06:15 +0100
committerChocobozzz <me@florianbigard.com>2018-03-12 11:44:28 +0100
commitb64c950a1cb37da880fc14e8535f438c78b5b7f7 (patch)
tree713bcba3c36e8b13345f0d7134d2e2876265b8e2 /server/tests/api/videos/multiple-servers.ts
parent416c359cb5967c2b5dff0909ef5558a49d753a1a (diff)
downloadPeerTube-b64c950a1cb37da880fc14e8535f438c78b5b7f7.tar.gz
PeerTube-b64c950a1cb37da880fc14e8535f438c78b5b7f7.tar.zst
PeerTube-b64c950a1cb37da880fc14e8535f438c78b5b7f7.zip
Update videos api list for account
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r--server/tests/api/videos/multiple-servers.ts73
1 files changed, 55 insertions, 18 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index 27c4c30b8..3f6b82c50 100644
--- a/server/tests/api/videos/multiple-servers.ts
+++ b/server/tests/api/videos/multiple-servers.ts
@@ -8,13 +8,35 @@ import { VideoPrivacy } from '../../../../shared/models/videos'
8import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' 8import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
9 9
10import { 10import {
11 addVideoChannel, checkVideoFilesWereRemoved, completeVideoCheck, createUser, dateIsValid, doubleFollow, flushAndRunMultipleServers, 11 addVideoChannel,
12 flushTests, getVideo, 12 checkVideoFilesWereRemoved,
13 getVideoChannelsList, getVideosList, killallServers, rateVideo, removeVideo, ServerInfo, setAccessTokensToServers, testImage, 13 completeVideoCheck,
14 updateVideo, uploadVideo, userLogin, viewVideo, wait, webtorrentAdd 14 createUser,
15 dateIsValid,
16 doubleFollow,
17 flushAndRunMultipleServers,
18 flushTests,
19 getVideo,
20 getVideoChannelsList,
21 getVideosList,
22 killallServers,
23 rateVideo,
24 removeVideo,
25 ServerInfo,
26 setAccessTokensToServers,
27 testImage,
28 updateVideo,
29 uploadVideo,
30 userLogin,
31 viewVideo,
32 wait,
33 webtorrentAdd
15} from '../../utils' 34} from '../../utils'
16import { 35import {
17 addVideoCommentReply, addVideoCommentThread, deleteVideoComment, getVideoCommentThreads, 36 addVideoCommentReply,
37 addVideoCommentThread,
38 deleteVideoComment,
39 getVideoCommentThreads,
18 getVideoThreadComments 40 getVideoThreadComments
19} from '../../utils/videos/video-comments' 41} from '../../utils/videos/video-comments'
20 42
@@ -90,8 +112,10 @@ describe('Test multiple servers', function () {
90 nsfw: true, 112 nsfw: true,
91 description: 'my super description for server 1', 113 description: 'my super description for server 1',
92 support: 'my super support text for server 1', 114 support: 'my super support text for server 1',
93 host: 'localhost:9001', 115 account: {
94 account: 'root', 116 name: 'root',
117 host: 'localhost:9001'
118 },
95 isLocal, 119 isLocal,
96 duration: 10, 120 duration: 10,
97 tags: [ 'tag1p1', 'tag2p1' ], 121 tags: [ 'tag1p1', 'tag2p1' ],
@@ -160,8 +184,10 @@ describe('Test multiple servers', function () {
160 nsfw: true, 184 nsfw: true,
161 description: 'my super description for server 2', 185 description: 'my super description for server 2',
162 support: 'my super support text for server 2', 186 support: 'my super support text for server 2',
163 host: 'localhost:9002', 187 account: {
164 account: 'user1', 188 name: 'user1',
189 host: 'localhost:9002'
190 },
165 isLocal, 191 isLocal,
166 commentsEnabled: true, 192 commentsEnabled: true,
167 duration: 5, 193 duration: 5,
@@ -264,8 +290,10 @@ describe('Test multiple servers', function () {
264 nsfw: true, 290 nsfw: true,
265 description: 'my super description for server 3', 291 description: 'my super description for server 3',
266 support: 'my super support text for server 3', 292 support: 'my super support text for server 3',
267 host: 'localhost:9003', 293 account: {
268 account: 'root', 294 name: 'root',
295 host: 'localhost:9003'
296 },
269 isLocal, 297 isLocal,
270 duration: 5, 298 duration: 5,
271 commentsEnabled: true, 299 commentsEnabled: true,
@@ -294,8 +322,10 @@ describe('Test multiple servers', function () {
294 nsfw: false, 322 nsfw: false,
295 description: 'my super description for server 3-2', 323 description: 'my super description for server 3-2',
296 support: 'my super support text for server 3-2', 324 support: 'my super support text for server 3-2',
297 host: 'localhost:9003', 325 account: {
298 account: 'root', 326 name: 'root',
327 host: 'localhost:9003'
328 },
299 commentsEnabled: true, 329 commentsEnabled: true,
300 isLocal, 330 isLocal,
301 duration: 5, 331 duration: 5,
@@ -570,8 +600,10 @@ describe('Test multiple servers', function () {
570 nsfw: true, 600 nsfw: true,
571 description: 'my super description updated', 601 description: 'my super description updated',
572 support: 'my super support text updated', 602 support: 'my super support text updated',
573 host: 'localhost:9003', 603 account: {
574 account: 'root', 604 name: 'root',
605 host: 'localhost:9003'
606 },
575 isLocal, 607 isLocal,
576 duration: 5, 608 duration: 5,
577 commentsEnabled: true, 609 commentsEnabled: true,
@@ -648,7 +680,10 @@ describe('Test multiple servers', function () {
648 expect(baseVideo.licence).to.equal(video.licence) 680 expect(baseVideo.licence).to.equal(video.licence)
649 expect(baseVideo.category).to.equal(video.category) 681 expect(baseVideo.category).to.equal(video.category)
650 expect(baseVideo.nsfw).to.equal(video.nsfw) 682 expect(baseVideo.nsfw).to.equal(video.nsfw)
651 expect(baseVideo.accountName).to.equal(video.accountName) 683 expect(baseVideo.account.name).to.equal(video.account.name)
684 expect(baseVideo.account.displayName).to.equal(video.account.displayName)
685 expect(baseVideo.account.url).to.equal(video.account.url)
686 expect(baseVideo.account.host).to.equal(video.account.host)
652 expect(baseVideo.tags).to.deep.equal(video.tags) 687 expect(baseVideo.tags).to.deep.equal(video.tags)
653 } 688 }
654 }) 689 })
@@ -859,8 +894,10 @@ describe('Test multiple servers', function () {
859 nsfw: false, 894 nsfw: false,
860 description: null, 895 description: null,
861 support: null, 896 support: null,
862 host: 'localhost:9002', 897 account: {
863 account: 'root', 898 name: 'root',
899 host: 'localhost:9002'
900 },
864 isLocal, 901 isLocal,
865 duration: 5, 902 duration: 5,
866 commentsEnabled: true, 903 commentsEnabled: true,