From: Chocobozzz Date: Mon, 11 Feb 2019 10:48:56 +0000 (+0100) Subject: Add federation tests on download enabled X-Git-Tag: v1.3.0-rc.1~205^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=53a94c7cfa8368da4cd248d65df8346905938f0c;p=oweals%2Fpeertube.git Add federation tests on download enabled --- diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index 256be5d1c..99b74ccff 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts @@ -918,11 +918,12 @@ describe('Test multiple servers', function () { } }) - it('Should disable comments', async function () { + it('Should disable comments and download', async function () { this.timeout(20000) const attributes = { - commentsEnabled: false + commentsEnabled: false, + downloadEnabled: false } await updateVideo(servers[0].url, servers[0].accessToken, videoUUID, attributes) @@ -932,6 +933,7 @@ describe('Test multiple servers', function () { for (const server of servers) { const res = await getVideo(server.url, videoUUID) expect(res.body.commentsEnabled).to.be.false + expect(res.body.downloadEnabled).to.be.false const text = 'my super forbidden comment' await addVideoCommentThread(server.url, server.accessToken, videoUUID, text, 409)