createMultipleServers,
createSingleServer,
doubleFollow,
+ expectLogDoesNotContain,
expectStartWith,
killallServers,
makeRawRequest,
})
it('Should upload a video and move it to the object storage with transcoding', async function () {
- this.timeout(40000)
+ this.timeout(120000)
const { uuid } = await servers[1].videos.quickUpload({ name: 'video 2' })
uuidsToDelete.push(uuid)
}
})
+ it('Should fetch correctly all the files', async function () {
+ for (const url of deletedUrls.concat(keptUrls)) {
+ await makeRawRequest(url, HttpStatusCode.OK_200)
+ }
+ })
+
it('Should correctly delete the files', async function () {
await servers[0].videos.remove({ id: uuidsToDelete[0] })
await servers[1].videos.remove({ id: uuidsToDelete[1] })
}
})
+ it('Should not have downloaded files from object storage', async function () {
+ for (const server of servers) {
+ await expectLogDoesNotContain(server, 'from object storage')
+ }
+ })
+
after(async function () {
- mockObjectStorage.terminate()
+ await mockObjectStorage.terminate()
await cleanupTests(servers)
})
playlistBucket: 'mybucket',
webtorrentBucket: 'mybucket',
- playlistPrefix: 'streaming-playlists_',
- webtorrentPrefix: 'webtorrent_',
+ playlistPrefix: 'streaming-playlists/',
+ webtorrentPrefix: 'webtorrent/',
useMockBaseUrl: true
})