diff options
author | Chocobozzz <me@florianbigard.com> | 2022-12-09 11:14:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-12-12 13:36:23 +0100 |
commit | 2732eeff9e6994582293b5aaa0cb158b7e272e9e (patch) | |
tree | 417d30cf470cd1db84e06c5dbd1b5429d4b99bc1 /server/tests/api/videos/video-playlists.ts | |
parent | c7c5f8d0f17b0ab598fbe237f11639c6de28110c (diff) | |
download | PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.tar.gz PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.tar.zst PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.zip |
Fix CI using 127.0.0.1 for tests
Diffstat (limited to 'server/tests/api/videos/video-playlists.ts')
-rw-r--r-- | server/tests/api/videos/video-playlists.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts index a3de73ba5..6a18cf26a 100644 --- a/server/tests/api/videos/video-playlists.ts +++ b/server/tests/api/videos/video-playlists.ts | |||
@@ -404,7 +404,7 @@ describe('Test video playlists', function () { | |||
404 | it('Should not list unlisted or private playlists', async function () { | 404 | it('Should not list unlisted or private playlists', async function () { |
405 | for (const server of servers) { | 405 | for (const server of servers) { |
406 | const results = [ | 406 | const results = [ |
407 | await server.playlists.listByAccount({ handle: 'root@localhost:' + servers[1].port, sort: '-createdAt' }), | 407 | await server.playlists.listByAccount({ handle: 'root@' + servers[1].host, sort: '-createdAt' }), |
408 | await server.playlists.list({ start: 0, count: 2, sort: '-createdAt' }) | 408 | await server.playlists.list({ start: 0, count: 2, sort: '-createdAt' }) |
409 | ] | 409 | ] |
410 | 410 | ||
@@ -701,52 +701,52 @@ describe('Test video playlists', function () { | |||
701 | const position = 2 | 701 | const position = 2 |
702 | 702 | ||
703 | { | 703 | { |
704 | await command.addToMyBlocklist({ token: userTokenServer1, account: 'root@localhost:' + servers[1].port }) | 704 | await command.addToMyBlocklist({ token: userTokenServer1, account: 'root@' + servers[1].host }) |
705 | await waitJobs(servers) | 705 | await waitJobs(servers) |
706 | 706 | ||
707 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.UNAVAILABLE, position, name, 3) | 707 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.UNAVAILABLE, position, name, 3) |
708 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 708 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |
709 | 709 | ||
710 | await command.removeFromMyBlocklist({ token: userTokenServer1, account: 'root@localhost:' + servers[1].port }) | 710 | await command.removeFromMyBlocklist({ token: userTokenServer1, account: 'root@' + servers[1].host }) |
711 | await waitJobs(servers) | 711 | await waitJobs(servers) |
712 | 712 | ||
713 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 713 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |
714 | } | 714 | } |
715 | 715 | ||
716 | { | 716 | { |
717 | await command.addToMyBlocklist({ token: userTokenServer1, server: 'localhost:' + servers[1].port }) | 717 | await command.addToMyBlocklist({ token: userTokenServer1, server: servers[1].host }) |
718 | await waitJobs(servers) | 718 | await waitJobs(servers) |
719 | 719 | ||
720 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.UNAVAILABLE, position, name, 3) | 720 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.UNAVAILABLE, position, name, 3) |
721 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 721 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |
722 | 722 | ||
723 | await command.removeFromMyBlocklist({ token: userTokenServer1, server: 'localhost:' + servers[1].port }) | 723 | await command.removeFromMyBlocklist({ token: userTokenServer1, server: servers[1].host }) |
724 | await waitJobs(servers) | 724 | await waitJobs(servers) |
725 | 725 | ||
726 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 726 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |
727 | } | 727 | } |
728 | 728 | ||
729 | { | 729 | { |
730 | await command.addToServerBlocklist({ account: 'root@localhost:' + servers[1].port }) | 730 | await command.addToServerBlocklist({ account: 'root@' + servers[1].host }) |
731 | await waitJobs(servers) | 731 | await waitJobs(servers) |
732 | 732 | ||
733 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.UNAVAILABLE, position, name, 3) | 733 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.UNAVAILABLE, position, name, 3) |
734 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 734 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |
735 | 735 | ||
736 | await command.removeFromServerBlocklist({ account: 'root@localhost:' + servers[1].port }) | 736 | await command.removeFromServerBlocklist({ account: 'root@' + servers[1].host }) |
737 | await waitJobs(servers) | 737 | await waitJobs(servers) |
738 | 738 | ||
739 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 739 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |
740 | } | 740 | } |
741 | 741 | ||
742 | { | 742 | { |
743 | await command.addToServerBlocklist({ server: 'localhost:' + servers[1].port }) | 743 | await command.addToServerBlocklist({ server: servers[1].host }) |
744 | await waitJobs(servers) | 744 | await waitJobs(servers) |
745 | 745 | ||
746 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.UNAVAILABLE, position, name, 3) | 746 | await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.UNAVAILABLE, position, name, 3) |
747 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 747 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |
748 | 748 | ||
749 | await command.removeFromServerBlocklist({ server: 'localhost:' + servers[1].port }) | 749 | await command.removeFromServerBlocklist({ server: servers[1].host }) |
750 | await waitJobs(servers) | 750 | await waitJobs(servers) |
751 | 751 | ||
752 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) | 752 | await checkPlaylistElementType(group2, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) |