aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/redundancy/manage-redundancy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/redundancy/manage-redundancy.ts')
-rw-r--r--server/tests/api/redundancy/manage-redundancy.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/redundancy/manage-redundancy.ts b/server/tests/api/redundancy/manage-redundancy.ts
index efb60dc56..e193b968e 100644
--- a/server/tests/api/redundancy/manage-redundancy.ts
+++ b/server/tests/api/redundancy/manage-redundancy.ts
@@ -53,15 +53,15 @@ describe('Test manage videos redundancy', function () {
53 // Get the access tokens 53 // Get the access tokens
54 await setAccessTokensToServers(servers) 54 await setAccessTokensToServers(servers)
55 55
56 commands = servers.map(s => s.redundancyCommand) 56 commands = servers.map(s => s.redundancy)
57 57
58 { 58 {
59 const { uuid } = await servers[1].videosCommand.upload({ attributes: { name: 'video 1 server 2' } }) 59 const { uuid } = await servers[1].videos.upload({ attributes: { name: 'video 1 server 2' } })
60 video1Server2UUID = uuid 60 video1Server2UUID = uuid
61 } 61 }
62 62
63 { 63 {
64 const { uuid } = await servers[1].videosCommand.upload({ attributes: { name: 'video 2 server 2' } }) 64 const { uuid } = await servers[1].videos.upload({ attributes: { name: 'video 2 server 2' } })
65 video2Server2UUID = uuid 65 video2Server2UUID = uuid
66 } 66 }
67 67
@@ -87,7 +87,7 @@ describe('Test manage videos redundancy', function () {
87 this.timeout(120000) 87 this.timeout(120000)
88 88
89 await waitJobs(servers) 89 await waitJobs(servers)
90 await servers[0].serversCommand.waitUntilLog('Duplicated ', 10) 90 await servers[0].servers.waitUntilLog('Duplicated ', 10)
91 await waitJobs(servers) 91 await waitJobs(servers)
92 92
93 const body = await commands[1].listVideos({ target: 'remote-videos' }) 93 const body = await commands[1].listVideos({ target: 'remote-videos' })
@@ -203,14 +203,14 @@ describe('Test manage videos redundancy', function () {
203 it('Should manually add a redundancy and list it', async function () { 203 it('Should manually add a redundancy and list it', async function () {
204 this.timeout(120000) 204 this.timeout(120000)
205 205
206 const uuid = (await servers[1].videosCommand.quickUpload({ name: 'video 3 server 2', privacy: VideoPrivacy.UNLISTED })).uuid 206 const uuid = (await servers[1].videos.quickUpload({ name: 'video 3 server 2', privacy: VideoPrivacy.UNLISTED })).uuid
207 await waitJobs(servers) 207 await waitJobs(servers)
208 const videoId = await servers[0].videosCommand.getId({ uuid }) 208 const videoId = await servers[0].videos.getId({ uuid })
209 209
210 await commands[0].addVideo({ videoId }) 210 await commands[0].addVideo({ videoId })
211 211
212 await waitJobs(servers) 212 await waitJobs(servers)
213 await servers[0].serversCommand.waitUntilLog('Duplicated ', 15) 213 await servers[0].servers.waitUntilLog('Duplicated ', 15)
214 await waitJobs(servers) 214 await waitJobs(servers)
215 215
216 { 216 {