/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
-import * as chai from 'chai'
import 'mocha'
-import { cleanupTests, flushAndRunServer, killallServers, makeGetRequest, makePingRequest, reRunServer, ServerInfo, setAccessTokensToServers } from '../../../../shared/extra-utils/index'
+import * as chai from 'chai'
+import {
+ cleanupTests,
+ flushAndRunServer,
+ killallServers,
+ makePingRequest,
+ reRunServer,
+ ServerInfo,
+ setAccessTokensToServers
+} from '../../../../shared/extra-utils/index'
+import { getAuditLogs, getLogs } from '../../../../shared/extra-utils/logs/logs'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { uploadVideo } from '../../../../shared/extra-utils/videos/videos'
-import { getAuditLogs, getLogs } from '../../../../shared/extra-utils/logs/logs'
const expect = chai.expect
describe('With the standard log file', function () {
it('Should get logs with a start date', async function () {
- this.timeout(10000)
+ this.timeout(20000)
await uploadVideo(server.url, server.accessToken, { name: 'video 1' })
await waitJobs([ server ])
})
it('Should get logs with an end date', async function () {
- this.timeout(20000)
+ this.timeout(30000)
await uploadVideo(server.url, server.accessToken, { name: 'video 3' })
await waitJobs([ server ])
})
it('Should get filter by level', async function () {
- this.timeout(10000)
+ this.timeout(20000)
const now = new Date()
})
it('Should log ping requests', async function () {
+ this.timeout(10000)
+
const now = new Date()
await makePingRequest(server)
describe('With the audit log', function () {
it('Should get logs with a start date', async function () {
- this.timeout(10000)
+ this.timeout(20000)
await uploadVideo(server.url, server.accessToken, { name: 'video 7' })
await waitJobs([ server ])
})
it('Should get logs with an end date', async function () {
- this.timeout(20000)
+ this.timeout(30000)
await uploadVideo(server.url, server.accessToken, { name: 'video 9' })
await waitJobs([ server ])