diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 6 |
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) |