diff options
author | Chocobozzz <me@florianbigard.com> | 2023-04-14 09:57:37 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-04-14 10:14:40 +0200 |
commit | e7c89cc3f3e69776c6ad62e62a52f8d2f12a81c1 (patch) | |
tree | 88dcb15bd523af9fe42fa1fc1d380c3b8dfba089 /server/tests/api | |
parent | 8b95440c8ac050594955926f18dab9f6d4a86e19 (diff) | |
download | PeerTube-e7c89cc3f3e69776c6ad62e62a52f8d2f12a81c1.tar.gz PeerTube-e7c89cc3f3e69776c6ad62e62a52f8d2f12a81c1.tar.zst PeerTube-e7c89cc3f3e69776c6ad62e62a52f8d2f12a81c1.zip |
Allow to update a live with untouched privacy
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/check-params/live.ts | 8 |
1 files changed, 7 insertions, 1 deletions
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 () { | |||
553 | const ffmpegCommand = sendRTMPStream({ rtmpBaseUrl: live.rtmpUrl, streamKey: live.streamKey }) | 553 | const ffmpegCommand = sendRTMPStream({ rtmpBaseUrl: live.rtmpUrl, streamKey: live.streamKey }) |
554 | 554 | ||
555 | await command.waitUntilPublished({ videoId: video.id }) | 555 | await command.waitUntilPublished({ videoId: video.id }) |
556 | |||
557 | await server.videos.update({ | ||
558 | id: video.id, | ||
559 | attributes: { privacy: VideoPrivacy.PUBLIC } // Same privacy, it's fine | ||
560 | }) | ||
561 | |||
556 | await server.videos.update({ | 562 | await server.videos.update({ |
557 | id: video.id, | 563 | id: video.id, |
558 | attributes: { privacy: VideoPrivacy.PUBLIC }, | 564 | attributes: { privacy: VideoPrivacy.UNLISTED }, |
559 | expectedStatus: HttpStatusCode.BAD_REQUEST_400 | 565 | expectedStatus: HttpStatusCode.BAD_REQUEST_400 |
560 | }) | 566 | }) |
561 | 567 | ||