diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-19 10:43:53 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-10-24 14:48:24 +0200 |
commit | 9ab330b90decf4edf152ff8e1d2948c065766b2c (patch) | |
tree | 29d924f50f7307e8e828a57ecb9ea78623487ce0 /server/tests/api/videos | |
parent | 3545e72c686ff1725bbdfd8d16d693e2f4aa75a3 (diff) | |
download | PeerTube-9ab330b90decf4edf152ff8e1d2948c065766b2c.tar.gz PeerTube-9ab330b90decf4edf152ff8e1d2948c065766b2c.tar.zst PeerTube-9ab330b90decf4edf152ff8e1d2948c065766b2c.zip |
Use private ACL for private videos in s3
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/video-static-file-privacy.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/videos/video-static-file-privacy.ts b/server/tests/api/videos/video-static-file-privacy.ts index e38fdec6e..bdbe85127 100644 --- a/server/tests/api/videos/video-static-file-privacy.ts +++ b/server/tests/api/videos/video-static-file-privacy.ts | |||
@@ -37,7 +37,7 @@ describe('Test video static file privacy', function () { | |||
37 | 37 | ||
38 | function runSuite () { | 38 | function runSuite () { |
39 | 39 | ||
40 | async function checkPrivateWebTorrentFiles (uuid: string) { | 40 | async function checkPrivateFiles (uuid: string) { |
41 | const video = await server.videos.getWithToken({ id: uuid }) | 41 | const video = await server.videos.getWithToken({ id: uuid }) |
42 | 42 | ||
43 | for (const file of video.files) { | 43 | for (const file of video.files) { |
@@ -63,7 +63,7 @@ describe('Test video static file privacy', function () { | |||
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | async function checkPublicWebTorrentFiles (uuid: string) { | 66 | async function checkPublicFiles (uuid: string) { |
67 | const video = await server.videos.get({ id: uuid }) | 67 | const video = await server.videos.get({ id: uuid }) |
68 | 68 | ||
69 | for (const file of getAllFiles(video)) { | 69 | for (const file of getAllFiles(video)) { |
@@ -98,7 +98,7 @@ describe('Test video static file privacy', function () { | |||
98 | const { uuid } = await server.videos.quickUpload({ name: 'video', privacy }) | 98 | const { uuid } = await server.videos.quickUpload({ name: 'video', privacy }) |
99 | await waitJobs([ server ]) | 99 | await waitJobs([ server ]) |
100 | 100 | ||
101 | await checkPrivateWebTorrentFiles(uuid) | 101 | await checkPrivateFiles(uuid) |
102 | } | 102 | } |
103 | }) | 103 | }) |
104 | 104 | ||
@@ -112,7 +112,7 @@ describe('Test video static file privacy', function () { | |||
112 | await server.videos.update({ id: uuid, attributes: { privacy } }) | 112 | await server.videos.update({ id: uuid, attributes: { privacy } }) |
113 | await waitJobs([ server ]) | 113 | await waitJobs([ server ]) |
114 | 114 | ||
115 | await checkPrivateWebTorrentFiles(uuid) | 115 | await checkPrivateFiles(uuid) |
116 | } | 116 | } |
117 | }) | 117 | }) |
118 | 118 | ||
@@ -125,7 +125,7 @@ describe('Test video static file privacy', function () { | |||
125 | await server.videos.update({ id: uuid, attributes: { privacy: VideoPrivacy.UNLISTED } }) | 125 | await server.videos.update({ id: uuid, attributes: { privacy: VideoPrivacy.UNLISTED } }) |
126 | await waitJobs([ server ]) | 126 | await waitJobs([ server ]) |
127 | 127 | ||
128 | await checkPublicWebTorrentFiles(uuid) | 128 | await checkPublicFiles(uuid) |
129 | }) | 129 | }) |
130 | 130 | ||
131 | it('Should upload an internal video and update it to public to have a public static path', async function () { | 131 | it('Should upload an internal video and update it to public to have a public static path', async function () { |
@@ -137,7 +137,7 @@ describe('Test video static file privacy', function () { | |||
137 | await server.videos.update({ id: uuid, attributes: { privacy: VideoPrivacy.PUBLIC } }) | 137 | await server.videos.update({ id: uuid, attributes: { privacy: VideoPrivacy.PUBLIC } }) |
138 | await waitJobs([ server ]) | 138 | await waitJobs([ server ]) |
139 | 139 | ||
140 | await checkPublicWebTorrentFiles(uuid) | 140 | await checkPublicFiles(uuid) |
141 | }) | 141 | }) |
142 | 142 | ||
143 | it('Should upload an internal video and schedule a public publish', async function () { | 143 | it('Should upload an internal video and schedule a public publish', async function () { |
@@ -160,7 +160,7 @@ describe('Test video static file privacy', function () { | |||
160 | 160 | ||
161 | await waitJobs([ server ]) | 161 | await waitJobs([ server ]) |
162 | 162 | ||
163 | await checkPublicWebTorrentFiles(uuid) | 163 | await checkPublicFiles(uuid) |
164 | }) | 164 | }) |
165 | } | 165 | } |
166 | 166 | ||