diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-08 11:17:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | e3d15a6a9aed97a004d9dac1b7a6499d794e080a (patch) | |
tree | 7637ac85a8659a66a1290c9533e0206e9a0c5a30 /server/tests/api/videos | |
parent | a1637fa1e25b60a88f7cfe50aac8953f50d55761 (diff) | |
download | PeerTube-e3d15a6a9aed97a004d9dac1b7a6499d794e080a.tar.gz PeerTube-e3d15a6a9aed97a004d9dac1b7a6499d794e080a.tar.zst PeerTube-e3d15a6a9aed97a004d9dac1b7a6499d794e080a.zip |
Introduce blacklist command
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/video-playlists.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts index 90189721a..069450453 100644 --- a/server/tests/api/videos/video-playlists.ts +++ b/server/tests/api/videos/video-playlists.ts | |||
@@ -6,7 +6,6 @@ import { HttpStatusCode } from '@shared/core-utils' | |||
6 | import { | 6 | import { |
7 | addVideoChannel, | 7 | addVideoChannel, |
8 | addVideoInPlaylist, | 8 | addVideoInPlaylist, |
9 | addVideoToBlacklist, | ||
10 | checkPlaylistFilesWereRemoved, | 9 | checkPlaylistFilesWereRemoved, |
11 | cleanupTests, | 10 | cleanupTests, |
12 | createUser, | 11 | createUser, |
@@ -28,7 +27,6 @@ import { | |||
28 | getVideoPlaylistsList, | 27 | getVideoPlaylistsList, |
29 | getVideoPlaylistWithToken, | 28 | getVideoPlaylistWithToken, |
30 | removeUser, | 29 | removeUser, |
31 | removeVideoFromBlacklist, | ||
32 | removeVideoFromPlaylist, | 30 | removeVideoFromPlaylist, |
33 | reorderVideosPlaylist, | 31 | reorderVideosPlaylist, |
34 | ServerInfo, | 32 | ServerInfo, |
@@ -728,7 +726,7 @@ describe('Test video playlists', function () { | |||
728 | const position = 1 | 726 | const position = 1 |
729 | 727 | ||
730 | { | 728 | { |
731 | await addVideoToBlacklist(servers[0].url, servers[0].accessToken, video1, 'reason', true) | 729 | await servers[0].blacklistCommand.add({ videoId: video1, reason: 'reason', unfederate: true }) |
732 | await waitJobs(servers) | 730 | await waitJobs(servers) |
733 | 731 | ||
734 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 732 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |
@@ -738,7 +736,7 @@ describe('Test video playlists', function () { | |||
738 | } | 736 | } |
739 | 737 | ||
740 | { | 738 | { |
741 | await removeVideoFromBlacklist(servers[0].url, servers[0].accessToken, video1) | 739 | await servers[0].blacklistCommand.remove({ videoId: video1 }) |
742 | await waitJobs(servers) | 740 | await waitJobs(servers) |
743 | 741 | ||
744 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 742 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |