Add federation tests on download enabled
This commit is contained in:
parent
8ea1597fdb
commit
53a94c7cfa
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
this.timeout(20000)
|
||||||
|
|
||||||
const attributes = {
|
const attributes = {
|
||||||
commentsEnabled: false
|
commentsEnabled: false,
|
||||||
|
downloadEnabled: false
|
||||||
}
|
}
|
||||||
|
|
||||||
await updateVideo(servers[0].url, servers[0].accessToken, videoUUID, attributes)
|
await updateVideo(servers[0].url, servers[0].accessToken, videoUUID, attributes)
|
||||||
|
@ -932,6 +933,7 @@ describe('Test multiple servers', function () {
|
||||||
for (const server of servers) {
|
for (const server of servers) {
|
||||||
const res = await getVideo(server.url, videoUUID)
|
const res = await getVideo(server.url, videoUUID)
|
||||||
expect(res.body.commentsEnabled).to.be.false
|
expect(res.body.commentsEnabled).to.be.false
|
||||||
|
expect(res.body.downloadEnabled).to.be.false
|
||||||
|
|
||||||
const text = 'my super forbidden comment'
|
const text = 'my super forbidden comment'
|
||||||
await addVideoCommentThread(server.url, server.accessToken, videoUUID, text, 409)
|
await addVideoCommentThread(server.url, server.accessToken, videoUUID, text, 409)
|
||||||
|
|
Loading…
Reference in a new issue