1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Add ability to search by host in server

This commit is contained in:
Chocobozzz 2021-07-27 09:07:38 +02:00
parent 5d0095fde1
commit 29837f8885
No known key found for this signature in database
GPG key ID: 583A612D890159BE
18 changed files with 513 additions and 354 deletions

View file

@ -111,10 +111,10 @@ describe('Test notifications API', function () {
expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.NONE)
}
const { name, uuid } = await server.videos.randomUpload()
const { name, shortUUID } = await server.videos.randomUpload()
const check = { web: true, mail: true }
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'absence')
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'absence' })
})
it('Should only have web notifications', async function () {
@ -130,16 +130,16 @@ describe('Test notifications API', function () {
expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.WEB)
}
const { name, uuid } = await server.videos.randomUpload()
const { name, shortUUID } = await server.videos.randomUpload()
{
const check = { mail: true, web: false }
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'absence')
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'absence' })
}
{
const check = { mail: false, web: true }
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'presence')
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'presence' })
}
})
@ -156,16 +156,16 @@ describe('Test notifications API', function () {
expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.EMAIL)
}
const { name, uuid } = await server.videos.randomUpload()
const { name, shortUUID } = await server.videos.randomUpload()
{
const check = { mail: false, web: true }
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'absence')
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'absence' })
}
{
const check = { mail: true, web: false }
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'presence')
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'presence' })
}
})
@ -187,9 +187,9 @@ describe('Test notifications API', function () {
)
}
const { name, uuid } = await server.videos.randomUpload()
const { name, shortUUID } = await server.videos.randomUpload()
await checkNewVideoFromSubscription(baseParams, name, uuid, 'presence')
await checkNewVideoFromSubscription({ ...baseParams, videoName: name, shortUUID, checkType: 'presence' })
})
})