diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-18 10:53:54 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-18 15:42:20 +0100 |
commit | f05a1c30c15d2ae35c11e241ca039a72eeb7d6ad (patch) | |
tree | 6d90c0de5dd3ad506e738d447e4f396951ed5624 /server/tests/api/videos/multiple-servers.ts | |
parent | 1174a8479ab9ee47b3305d668fe757435057a298 (diff) | |
download | PeerTube-f05a1c30c15d2ae35c11e241ca039a72eeb7d6ad.tar.gz PeerTube-f05a1c30c15d2ae35c11e241ca039a72eeb7d6ad.tar.zst PeerTube-f05a1c30c15d2ae35c11e241ca039a72eeb7d6ad.zip |
Don't show videos of remote instance after unfollow
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index 6712829d4..4c4b5123d 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts | |||
@@ -8,8 +8,9 @@ import { VideoPrivacy } from '../../../../shared/models/videos' | |||
8 | import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' | 8 | import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' |
9 | 9 | ||
10 | import { | 10 | import { |
11 | addVideoChannel, completeVideoCheck, createUser, dateIsValid, doubleFollow, flushAndRunMultipleServers, flushTests, getVideo, | 11 | addVideoChannel, checkVideoFilesWereRemoved, completeVideoCheck, createUser, dateIsValid, doubleFollow, flushAndRunMultipleServers, |
12 | getVideoChannelsList, getVideosList, killallServers, rateVideo, removeVideo, ServerInfo, setAccessTokensToServers, testVideoImage, | 12 | flushTests, getVideo, |
13 | getVideoChannelsList, getVideosList, killallServers, rateVideo, removeVideo, ServerInfo, setAccessTokensToServers, testImage, | ||
13 | updateVideo, uploadVideo, userLogin, viewVideo, wait, webtorrentAdd | 14 | updateVideo, uploadVideo, userLogin, viewVideo, wait, webtorrentAdd |
14 | } from '../../utils' | 15 | } from '../../utils' |
15 | import { | 16 | import { |
@@ -578,6 +579,13 @@ describe('Test multiple servers', function () { | |||
578 | await wait(5000) | 579 | await wait(5000) |
579 | }) | 580 | }) |
580 | 581 | ||
582 | it('Should not have files of videos 3 and 3-2 on each server', async function () { | ||
583 | for (const server of servers) { | ||
584 | await checkVideoFilesWereRemoved(toRemove[0].uuid, server.serverNumber) | ||
585 | await checkVideoFilesWereRemoved(toRemove[1].uuid, server.serverNumber) | ||
586 | } | ||
587 | }) | ||
588 | |||
581 | it('Should have videos 1 and 3 on each server', async function () { | 589 | it('Should have videos 1 and 3 on each server', async function () { |
582 | for (const server of servers) { | 590 | for (const server of servers) { |
583 | const res = await getVideosList(server.url) | 591 | const res = await getVideosList(server.url) |
@@ -624,7 +632,7 @@ describe('Test multiple servers', function () { | |||
624 | const res = await getVideo(server.url, videoUUID) | 632 | const res = await getVideo(server.url, videoUUID) |
625 | const video = res.body | 633 | const video = res.body |
626 | 634 | ||
627 | const test = await testVideoImage(server.url, 'video_short1-preview.webm', video.previewPath) | 635 | const test = await testImage(server.url, 'video_short1-preview.webm', video.previewPath) |
628 | expect(test).to.equal(true) | 636 | expect(test).to.equal(true) |
629 | } | 637 | } |
630 | }) | 638 | }) |