+ expect(playlistPrivacies[1]).to.exist
+ expect(playlistPrivacies[2]).to.exist
+ expect(playlistPrivacies[3]).to.not.exist
+ })
+
+ it('Should not be able to create a video with this privacy', async function () {
+ const attributes = { name: 'video', privacy: 2 }
+ await server.videos.upload({ attributes, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })
+ })
+
+ it('Should not be able to create a video with this privacy', async function () {
+ const attributes = { displayName: 'video playlist', privacy: VideoPlaylistPrivacy.PRIVATE }
+ await server.playlists.create({ attributes, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })
+ })