From 851675c5591dcab1070183f0ed1b1a788de07d2c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Aug 2021 15:13:41 +0200 Subject: Rename jobs list command --- server/tests/api/server/handle-down.ts | 2 +- server/tests/api/server/jobs.ts | 8 ++++---- server/tests/api/videos/video-transcoder.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'server') diff --git a/server/tests/api/server/handle-down.ts b/server/tests/api/server/handle-down.ts index 2f3950354..b3255a721 100644 --- a/server/tests/api/server/handle-down.ts +++ b/server/tests/api/server/handle-down.ts @@ -161,7 +161,7 @@ describe('Test handle downs', function () { const states: JobState[] = [ 'waiting', 'active' ] for (const state of states) { - const body = await servers[0].jobs.getJobsList({ + const body = await servers[0].jobs.list({ state: state, start: 0, count: 50, diff --git a/server/tests/api/server/jobs.ts b/server/tests/api/server/jobs.ts index c10c154c2..937028e4f 100644 --- a/server/tests/api/server/jobs.ts +++ b/server/tests/api/server/jobs.ts @@ -38,14 +38,14 @@ describe('Test jobs', function () { }) it('Should list jobs', async function () { - const body = await servers[1].jobs.getJobsList({ state: 'completed' }) + const body = await servers[1].jobs.list({ state: 'completed' }) expect(body.total).to.be.above(2) expect(body.data).to.have.length.above(2) }) it('Should list jobs with sort, pagination and job type', async function () { { - const body = await servers[1].jobs.getJobsList({ + const body = await servers[1].jobs.list({ state: 'completed', start: 1, count: 2, @@ -66,7 +66,7 @@ describe('Test jobs', function () { } { - const body = await servers[1].jobs.getJobsList({ + const body = await servers[1].jobs.list({ state: 'completed', start: 0, count: 100, @@ -82,7 +82,7 @@ describe('Test jobs', function () { }) it('Should list all jobs', async function () { - const body = await servers[1].jobs.getJobsList() + const body = await servers[1].jobs.list() expect(body.total).to.be.above(2) const jobs = body.data diff --git a/server/tests/api/videos/video-transcoder.ts b/server/tests/api/videos/video-transcoder.ts index f67752d69..2b49176b2 100644 --- a/server/tests/api/videos/video-transcoder.ts +++ b/server/tests/api/videos/video-transcoder.ts @@ -693,7 +693,7 @@ describe('Test video transcoding', function () { describe('Transcoding job queue', function () { it('Should have the appropriate priorities for transcoding jobs', async function () { - const body = await servers[1].jobs.getJobsList({ + const body = await servers[1].jobs.list({ start: 0, count: 100, sort: '-createdAt', -- cgit v1.2.3