diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-15 10:02:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | d23dd9fbfc4d26026352c10f81d2795ceaf2908a (patch) | |
tree | da82286d423c5e834a1ee2dcd5970076b8263cf1 /server/tests/api/check-params/redundancy.ts | |
parent | 7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0 (diff) | |
download | PeerTube-d23dd9fbfc4d26026352c10f81d2795ceaf2908a.tar.gz PeerTube-d23dd9fbfc4d26026352c10f81d2795ceaf2908a.tar.zst PeerTube-d23dd9fbfc4d26026352c10f81d2795ceaf2908a.zip |
Introduce videos command
Diffstat (limited to 'server/tests/api/check-params/redundancy.ts')
-rw-r--r-- | server/tests/api/check-params/redundancy.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/server/tests/api/check-params/redundancy.ts b/server/tests/api/check-params/redundancy.ts index d93022c32..b1692b986 100644 --- a/server/tests/api/check-params/redundancy.ts +++ b/server/tests/api/check-params/redundancy.ts | |||
@@ -10,14 +10,12 @@ import { | |||
10 | cleanupTests, | 10 | cleanupTests, |
11 | doubleFollow, | 11 | doubleFollow, |
12 | flushAndRunMultipleServers, | 12 | flushAndRunMultipleServers, |
13 | getVideo, | ||
14 | makeDeleteRequest, | 13 | makeDeleteRequest, |
15 | makeGetRequest, | 14 | makeGetRequest, |
16 | makePostBodyRequest, | 15 | makePostBodyRequest, |
17 | makePutBodyRequest, | 16 | makePutBodyRequest, |
18 | ServerInfo, | 17 | ServerInfo, |
19 | setAccessTokensToServers, | 18 | setAccessTokensToServers, |
20 | uploadVideoAndGetId, | ||
21 | waitJobs | 19 | waitJobs |
22 | } from '../../../../shared/extra-utils' | 20 | } from '../../../../shared/extra-utils' |
23 | 21 | ||
@@ -45,14 +43,13 @@ describe('Test server redundancy API validators', function () { | |||
45 | await servers[0].usersCommand.create({ username: user.username, password: user.password }) | 43 | await servers[0].usersCommand.create({ username: user.username, password: user.password }) |
46 | userAccessToken = await servers[0].loginCommand.getAccessToken(user) | 44 | userAccessToken = await servers[0].loginCommand.getAccessToken(user) |
47 | 45 | ||
48 | videoIdLocal = (await uploadVideoAndGetId({ server: servers[0], videoName: 'video' })).id | 46 | videoIdLocal = (await servers[0].videosCommand.quickUpload({ name: 'video' })).id |
49 | 47 | ||
50 | const remoteUUID = (await uploadVideoAndGetId({ server: servers[1], videoName: 'video' })).uuid | 48 | const remoteUUID = (await servers[1].videosCommand.quickUpload({ name: 'video' })).uuid |
51 | 49 | ||
52 | await waitJobs(servers) | 50 | await waitJobs(servers) |
53 | 51 | ||
54 | const resVideo = await getVideo(servers[0].url, remoteUUID) | 52 | videoRemote = await servers[0].videosCommand.get({ id: remoteUUID }) |
55 | videoRemote = resVideo.body | ||
56 | }) | 53 | }) |
57 | 54 | ||
58 | describe('When listing redundancies', function () { | 55 | describe('When listing redundancies', function () { |