- expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/video-channels/channel1</loc></url>')
- expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/video-channels/channel2</loc></url>')
+ expect(res.text).to.contain('<url><loc>' + server.url + '/video-channels/channel1</loc></url>')
+ expect(res.text).to.contain('<url><loc>' + server.url + '/video-channels/channel2</loc></url>')
+
+ expect(res.text).to.contain('<url><loc>' + server.url + '/accounts/user1</loc></url>')
+ expect(res.text).to.contain('<url><loc>' + server.url + '/accounts/user2</loc></url>')
+ })
+
+ it('Should not fail with big title/description videos', async function () {
+ const name = 'v'.repeat(115)
+
+ await server.videos.upload({ attributes: { name, description: 'd'.repeat(2500), nsfw: false } })
+
+ const res = await makeGetRequest({
+ url: server.url,
+ path: '/sitemap.xml?t=2', // avoid using cache
+ expectedStatus: HttpStatusCode.OK_200
+ })
+
+ await expectLogDoesNotContain(server, 'Warning in sitemap generation')
+ await expectLogDoesNotContain(server, 'Error in sitemap generation')