import { join } from 'path'
import { randomInt } from '../../core-utils/miscs/miscs'
import { VideoChannel } from '../../models/videos'
+import { BulkCommand } from '../bulk'
+import { CLICommand } from '../cli'
+import { CustomPagesCommand } from '../custom-pages'
+import { FeedCommand } from '../feeds'
import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs'
import { makeGetRequest } from '../requests/requests'
customConfigFile?: string
accessToken?: string
+ refreshToken?: string
videoChannel?: VideoChannel
video?: {
id: number
uuid: string
+ shortUUID: string
name?: string
url?: string
+
account?: {
name: string
}
+
+ embedPath?: string
}
remoteVideo?: {
}
videos?: { id: number, uuid: string }[]
+
+ bulkCommand?: BulkCommand
+ cliCommand?: CLICommand
+ customPageCommand?: CustomPagesCommand
+ feedCommand?: FeedCommand
}
function parallelTests () {
} catch { /* empty */ }
})
+ server.bulkCommand = new BulkCommand(server)
+ server.cliCommand = new CLICommand(server)
+ server.customPageCommand = new CustomPagesCommand(server)
+ server.feedCommand = new FeedCommand(server)
+
res(server)
})
})
}
async function checkTmpIsEmpty (server: ServerInfo) {
- await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls' ])
+ await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls', 'resumable-uploads' ])
if (await pathExists(join('test' + server.internalServerNumber, 'tmp', 'hls'))) {
await checkDirectoryIsEmpty(server, 'tmp/hls')