From e7c89cc3f3e69776c6ad62e62a52f8d2f12a81c1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 14 Apr 2023 09:57:37 +0200 Subject: Allow to update a live with untouched privacy --- server/tests/api/check-params/live.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'server/tests/api') diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.ts index 81f10ed8e..2dc735c23 100644 --- a/server/tests/api/check-params/live.ts +++ b/server/tests/api/check-params/live.ts @@ -553,9 +553,15 @@ describe('Test video lives API validator', function () { const ffmpegCommand = sendRTMPStream({ rtmpBaseUrl: live.rtmpUrl, streamKey: live.streamKey }) await command.waitUntilPublished({ videoId: video.id }) + + await server.videos.update({ + id: video.id, + attributes: { privacy: VideoPrivacy.PUBLIC } // Same privacy, it's fine + }) + await server.videos.update({ id: video.id, - attributes: { privacy: VideoPrivacy.PUBLIC }, + attributes: { privacy: VideoPrivacy.UNLISTED }, expectedStatus: HttpStatusCode.BAD_REQUEST_400 }) -- cgit v1.2.3