+
+ it('Should not get unlisted playlist using only the id', async function () {
+ await getVideoPlaylist(servers[1].url, unlistedPlaylist.id, 404)
+ })
+
+ it('Should get unlisted plyaylist using uuid or shortUUID', async function () {
+ await getVideoPlaylist(servers[1].url, unlistedPlaylist.uuid)
+ await getVideoPlaylist(servers[1].url, unlistedPlaylist.shortUUID)
+ })
+
+ it('Should not get private playlist without token', async function () {
+ for (const id of [ privatePlaylist.id, privatePlaylist.uuid, privatePlaylist.shortUUID ]) {
+ await getVideoPlaylist(servers[1].url, id, 401)
+ }
+ })
+
+ it('Should get private playlist with a token', async function () {
+ for (const id of [ privatePlaylist.id, privatePlaylist.uuid, privatePlaylist.shortUUID ]) {
+ await getVideoPlaylistWithToken(servers[1].url, servers[1].accessToken, id)
+ }
+ })