- const res = await getVideo(server.url, videosUUID[4])
- const videoDetail: VideoDetails = res.body
+ const videoDetails = await server.videos.get({ id: videosUUID[4] })
+
+ expect(videoDetails.files).to.have.lengthOf(4)
+ expect(videoDetails.streamingPlaylists).to.have.lengthOf(1)
+ expect(videoDetails.streamingPlaylists[0].files).to.have.lengthOf(4)
+
+ if (objectStorage) {
+ await checkFilesInObjectStorage(videoDetails.files, 'webtorrent')
+ await checkFilesInObjectStorage(videoDetails.streamingPlaylists[0].files, 'playlist')
+ }
+ }
+ })
+
+ it('Should not have updated published at attributes', async function () {
+ for (const id of videosUUID) {
+ const video = await servers[0].videos.get({ id })