aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/multiple-servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-11 11:48:56 +0100
committerChocobozzz <me@florianbigard.com>2019-02-11 11:48:56 +0100
commit53a94c7cfa8368da4cd248d65df8346905938f0c (patch)
treee6ac184b31df205c349dc44fde7e7986fe55a62f /server/tests/api/videos/multiple-servers.ts
parent8ea1597fdbb2eb8ef71e805cf175e88ae05629c0 (diff)
downloadPeerTube-53a94c7cfa8368da4cd248d65df8346905938f0c.tar.gz
PeerTube-53a94c7cfa8368da4cd248d65df8346905938f0c.tar.zst
PeerTube-53a94c7cfa8368da4cd248d65df8346905938f0c.zip
Add federation tests on download enabled
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r--server/tests/api/videos/multiple-servers.ts6
1 files changed, 4 insertions, 2 deletions
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 () {
918 } 918 }
919 }) 919 })
920 920
921 it('Should disable comments', async function () { 921 it('Should disable comments and download', async function () {
922 this.timeout(20000) 922 this.timeout(20000)
923 923
924 const attributes = { 924 const attributes = {
925 commentsEnabled: false 925 commentsEnabled: false,
926 downloadEnabled: false
926 } 927 }
927 928
928 await updateVideo(servers[0].url, servers[0].accessToken, videoUUID, attributes) 929 await updateVideo(servers[0].url, servers[0].accessToken, videoUUID, attributes)
@@ -932,6 +933,7 @@ describe('Test multiple servers', function () {
932 for (const server of servers) { 933 for (const server of servers) {
933 const res = await getVideo(server.url, videoUUID) 934 const res = await getVideo(server.url, videoUUID)
934 expect(res.body.commentsEnabled).to.be.false 935 expect(res.body.commentsEnabled).to.be.false
936 expect(res.body.downloadEnabled).to.be.false
935 937
936 const text = 'my super forbidden comment' 938 const text = 'my super forbidden comment'
937 await addVideoCommentThread(server.url, server.accessToken, videoUUID, text, 409) 939 await addVideoCommentThread(server.url, server.accessToken, videoUUID, text, 409)