diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-25 15:05:18 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-25 18:41:17 +0100 |
commit | 94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4 (patch) | |
tree | 32a9148e0e4567f0c4ffae0412cbed20b84e8873 /server/tests/utils | |
parent | d765fafc3faf0db9818eb1a07161df1cb1bc0efa (diff) | |
download | PeerTube-94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4.tar.gz PeerTube-94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4.tar.zst PeerTube-94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4.zip |
Move job queue to redis
We'll use it as cache in the future.
/!\ You'll loose your old jobs (pending jobs too) so upgrade only when
you don't have pending job anymore.
Diffstat (limited to 'server/tests/utils')
-rw-r--r-- | server/tests/utils/server/jobs.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/tests/utils/server/jobs.ts b/server/tests/utils/server/jobs.ts index 0a8c51575..4053dd40b 100644 --- a/server/tests/utils/server/jobs.ts +++ b/server/tests/utils/server/jobs.ts | |||
@@ -1,7 +1,8 @@ | |||
1 | import * as request from 'supertest' | 1 | import * as request from 'supertest' |
2 | import { JobState } from '../../../../shared/models' | ||
2 | 3 | ||
3 | function getJobsList (url: string, accessToken: string) { | 4 | function getJobsList (url: string, accessToken: string, state: JobState) { |
4 | const path = '/api/v1/jobs' | 5 | const path = '/api/v1/jobs/' + state |
5 | 6 | ||
6 | return request(url) | 7 | return request(url) |
7 | .get(path) | 8 | .get(path) |
@@ -11,8 +12,8 @@ function getJobsList (url: string, accessToken: string) { | |||
11 | .expect('Content-Type', /json/) | 12 | .expect('Content-Type', /json/) |
12 | } | 13 | } |
13 | 14 | ||
14 | function getJobsListPaginationAndSort (url: string, accessToken: string, start: number, count: number, sort: string) { | 15 | function getJobsListPaginationAndSort (url: string, accessToken: string, state: JobState, start: number, count: number, sort: string) { |
15 | const path = '/api/v1/jobs' | 16 | const path = '/api/v1/jobs/' + state |
16 | 17 | ||
17 | return request(url) | 18 | return request(url) |
18 | .get(path) | 19 | .get(path) |