await servers[0].servers.waitUntilLog(`server url is ${servers[0].url}`)
})
+ it('Should have the correct listening config', async function () {
+ const res = await makeGetRequest({
+ url: servers[0].url,
+ path: '/plugins/test-four/router/server-listening-config',
+ expectedStatus: HttpStatusCode.OK_200
+ })
+
+ expect(res.body.config).to.exist
+ expect(res.body.config.hostname).to.equal('::')
+ expect(res.body.config.port).to.equal(servers[0].port)
+ })
+
it('Should have the correct config', async function () {
const res = await makeGetRequest({
url: servers[0].url,
})
it('Should mute server 2', async function () {
- this.timeout(10000)
await postCommand(servers[0], 'blockServer', { hostToBlock: servers[1].host })
const { data } = await servers[0].videos.list()
})
it('Should blacklist video', async function () {
- this.timeout(10000)
-
await postCommand(servers[0], 'blacklist', { videoUUID: videoUUIDServer1, unfederate: true })
await waitJobs(servers)
})
it('Should unblacklist video', async function () {
- this.timeout(10000)
-
await postCommand(servers[0], 'unblacklist', { videoUUID: videoUUIDServer1 })
await waitJobs(servers)
let videoUUID: string
let videoPath: string
- before(async () => {
+ before(async function () {
this.timeout(240000)
await servers[0].config.enableTranscoding()