+ })
+
+ it('Should have updated videos url', async function () {
+ const res = await getVideosList(server.url)
+ expect(res.body.total).to.equal(2)
+
+ for (const video of res.body.data) {
+ const { body } = await makeActivityPubGetRequest(server.url, '/videos/watch/' + video.uuid)
+
+ expect(body.id).to.equal('http://localhost:9002/videos/watch/' + video.uuid)
+ }
+ })
+
+ it('Should have updated video channels url', async function () {
+ const res = await getVideoChannelsList(server.url, 0, 5, '-name')
+ expect(res.body.total).to.equal(3)
+
+ for (const channel of res.body.data) {
+ const { body } = await makeActivityPubGetRequest(server.url, '/video-channels/' + channel.uuid)
+
+ expect(body.id).to.equal('http://localhost:9002/video-channels/' + channel.uuid)
+ }
+ })
+
+ it('Should have update accounts url', async function () {
+ const res = await getAccountsList(server.url)
+ expect(res.body.total).to.equal(3)
+
+ for (const account of res.body.data) {
+ const usernameWithDomain = account.name
+ const { body } = await makeActivityPubGetRequest(server.url, '/accounts/' + usernameWithDomain)
+
+ expect(body.id).to.equal('http://localhost:9002/accounts/' + usernameWithDomain)
+ }
+ })
+
+ it('Should update torrent hosts', async function () {
+ this.timeout(30000)