mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add torrent tests
This commit is contained in:
parent
187501f8b8
commit
3e17515e29
11 changed files with 144 additions and 59 deletions
|
@ -627,7 +627,7 @@ describe('Test users API validators', function () {
|
|||
}
|
||||
await importVideo(server.url, server.accessToken, immutableAssign(baseAttributes, { targetUrl: getYoutubeVideoUrl() }))
|
||||
await importVideo(server.url, server.accessToken, immutableAssign(baseAttributes, { magnetUri: getMagnetURI() }))
|
||||
await importVideo(server.url, server.accessToken, immutableAssign(baseAttributes, { torrentfile: '60fps_small-240p.torrent' }))
|
||||
await importVideo(server.url, server.accessToken, immutableAssign(baseAttributes, { torrentfile: 'video-720p.torrent' }))
|
||||
|
||||
await waitJobs([ server ])
|
||||
|
||||
|
|
|
@ -303,7 +303,7 @@ describe('Test video imports API validator', function () {
|
|||
|
||||
fields = omit(fields, 'magnetUri')
|
||||
const attaches = {
|
||||
'torrentfile': join(__dirname, '..', '..', 'fixtures', '60fps_small-240p.torrent')
|
||||
'torrentfile': join(__dirname, '..', '..', 'fixtures', 'video-720p.torrent')
|
||||
}
|
||||
|
||||
await makeUploadRequest({ url: server.url, path, token: server.accessToken, fields, attaches, statusCodeExpected: 409 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue