+ it('Should update another accounts video channel', async function () {
+ this.timeout(15000)
+
+ const result = await servers[0].users.generate('second_user')
+ secondUserChannelName = result.userChannelName
+
+ await servers[0].videos.quickUpload({ name: 'video', token: result.token })
+
+ const videoChannelAttributes = {
+ displayName: 'video channel updated',
+ description: 'video channel description updated',
+ support: 'support updated'
+ }
+
+ await servers[0].channels.update({ channelName: secondUserChannelName, attributes: videoChannelAttributes })
+
+ await waitJobs(servers)
+ })
+
+ it('Should have another accounts video channel updated', async function () {
+ for (const server of servers) {
+ const body = await server.channels.get({ channelName: `${secondUserChannelName}@${servers[0].host}` })
+
+ expect(body.displayName).to.equal('video channel updated')
+ expect(body.description).to.equal('video channel description updated')
+ expect(body.support).to.equal('support updated')
+ }
+ })
+