+ it('Should display private information with appropriate token', async function () {
+ const live = await command.get({ videoId: video.id })
+
+ expect(live.rtmpUrl).to.exist
+ expect(live.streamKey).to.exist
+ expect(live.latencyMode).to.exist
+ })
+
+ it('Should fail with a bad video id', async function () {
+ await command.get({ videoId: 'toto', expectedStatus: HttpStatusCode.BAD_REQUEST_400 })
+ })
+
+ it('Should fail with an unknown video id', async function () {
+ await command.get({ videoId: 454555, expectedStatus: HttpStatusCode.NOT_FOUND_404 })
+ })
+
+ it('Should fail with a non live video', async function () {
+ await command.get({ videoId: videoIdNotLive, expectedStatus: HttpStatusCode.NOT_FOUND_404 })
+ })
+
+ it('Should succeed with the correct params', async function () {
+ await command.get({ videoId: video.id })
+ await command.get({ videoId: video.uuid })
+ await command.get({ videoId: video.shortUUID })
+ })
+ })
+
+ describe('When getting live sessions', function () {
+