+ const video = await server.videos.get({ id: servers[0].store.videoCreated.uuid })
+
+ expect(video.name).to.equal('my super name')
+ expect(video.channel.displayName).to.equal('Main second channel')
+ expect(video.channel.name).to.equal('second_channel')
+ }
+ })
+
+ it('Should send a request to change ownership of a live', async function () {
+ this.timeout(15000)
+
+ await command.create({ token: firstUserToken, videoId: liveId, username: secondUser })
+
+ const body = await command.list({ token: secondUserToken })
+
+ expect(body.total).to.equal(3)
+ expect(body.data.length).to.equal(3)
+
+ lastRequestId = body.data[0].id
+ })
+
+ it('Should accept a live ownership change', async function () {
+ this.timeout(20000)
+
+ await command.accept({ token: secondUserToken, ownershipId: lastRequestId, channelId: secondUserChannelId })