let videoUUID: string
let publishedAt: string
+ let shouldBeDeleted: string[]
+
before(async function () {
this.timeout(120000)
expect(videoDetails.streamingPlaylists[0].files).to.have.lengthOf(1)
if (objectStorage) await checkFilesInObjectStorage(videoDetails)
+
+ shouldBeDeleted = [
+ videoDetails.streamingPlaylists[0].files[0].fileUrl,
+ videoDetails.streamingPlaylists[0].playlistUrl,
+ videoDetails.streamingPlaylists[0].segmentsSha256Url
+ ]
}
await servers[0].config.updateExistingSubConfig({
}
})
+ it('Should have correctly deleted previous files', async function () {
+ for (const fileUrl of shouldBeDeleted) {
+ await makeRawRequest(fileUrl, HttpStatusCode.NOT_FOUND_404)
+ }
+ })
+
it('Should not have updated published at attributes', async function () {
const video = await servers[0].videos.get({ id: videoUUID })