aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/search/search-activitypub-videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/search/search-activitypub-videos.ts')
-rw-r--r--server/tests/api/search/search-activitypub-videos.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/search/search-activitypub-videos.ts b/server/tests/api/search/search-activitypub-videos.ts
index 19b4d5ed8..0dfc63446 100644
--- a/server/tests/api/search/search-activitypub-videos.ts
+++ b/server/tests/api/search/search-activitypub-videos.ts
@@ -30,18 +30,18 @@ describe('Test ActivityPub videos search', function () {
30 await setAccessTokensToServers(servers) 30 await setAccessTokensToServers(servers)
31 31
32 { 32 {
33 const { uuid } = await servers[0].videosCommand.upload({ attributes: { name: 'video 1 on server 1' } }) 33 const { uuid } = await servers[0].videos.upload({ attributes: { name: 'video 1 on server 1' } })
34 videoServer1UUID = uuid 34 videoServer1UUID = uuid
35 } 35 }
36 36
37 { 37 {
38 const { uuid } = await servers[1].videosCommand.upload({ attributes: { name: 'video 1 on server 2' } }) 38 const { uuid } = await servers[1].videos.upload({ attributes: { name: 'video 1 on server 2' } })
39 videoServer2UUID = uuid 39 videoServer2UUID = uuid
40 } 40 }
41 41
42 await waitJobs(servers) 42 await waitJobs(servers)
43 43
44 command = servers[0].searchCommand 44 command = servers[0].search
45 }) 45 })
46 46
47 it('Should not find a remote video', async function () { 47 it('Should not find a remote video', async function () {
@@ -105,7 +105,7 @@ describe('Test ActivityPub videos search', function () {
105 }) 105 })
106 106
107 it('Should not list this remote video', async function () { 107 it('Should not list this remote video', async function () {
108 const { total, data } = await servers[0].videosCommand.list() 108 const { total, data } = await servers[0].videos.list()
109 expect(total).to.equal(1) 109 expect(total).to.equal(1)
110 expect(data).to.have.lengthOf(1) 110 expect(data).to.have.lengthOf(1)
111 expect(data[0].name).to.equal('video 1 on server 1') 111 expect(data[0].name).to.equal('video 1 on server 1')
@@ -118,7 +118,7 @@ describe('Test ActivityPub videos search', function () {
118 name: 'super_channel', 118 name: 'super_channel',
119 displayName: 'super channel' 119 displayName: 'super channel'
120 } 120 }
121 const created = await servers[1].channelsCommand.create({ attributes: channelAttributes }) 121 const created = await servers[1].channels.create({ attributes: channelAttributes })
122 const videoChannelId = created.id 122 const videoChannelId = created.id
123 123
124 const attributes = { 124 const attributes = {
@@ -127,7 +127,7 @@ describe('Test ActivityPub videos search', function () {
127 privacy: VideoPrivacy.UNLISTED, 127 privacy: VideoPrivacy.UNLISTED,
128 channelId: videoChannelId 128 channelId: videoChannelId
129 } 129 }
130 await servers[1].videosCommand.update({ id: videoServer2UUID, attributes }) 130 await servers[1].videos.update({ id: videoServer2UUID, attributes })
131 131
132 await waitJobs(servers) 132 await waitJobs(servers)
133 // Expire video 133 // Expire video
@@ -153,7 +153,7 @@ describe('Test ActivityPub videos search', function () {
153 it('Should delete video of server 2, and delete it on server 1', async function () { 153 it('Should delete video of server 2, and delete it on server 1', async function () {
154 this.timeout(120000) 154 this.timeout(120000)
155 155
156 await servers[1].videosCommand.remove({ id: videoServer2UUID }) 156 await servers[1].videos.remove({ id: videoServer2UUID })
157 157
158 await waitJobs(servers) 158 await waitJobs(servers)
159 // Expire video 159 // Expire video