diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-12 15:36:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-12 15:36:44 +0200 |
commit | 87699a09ce714ceb79dbd846fac0de37a57fe6e3 (patch) | |
tree | 79f7051c73d293b0c86b758e849ac0b3bcabbe3f /server/tests/api/object-storage | |
parent | f8ddccf23984ee866057ca50064b688c0909ab7a (diff) | |
download | PeerTube-87699a09ce714ceb79dbd846fac0de37a57fe6e3.tar.gz PeerTube-87699a09ce714ceb79dbd846fac0de37a57fe6e3.tar.zst PeerTube-87699a09ce714ceb79dbd846fac0de37a57fe6e3.zip |
Add object storage test
Diffstat (limited to 'server/tests/api/object-storage')
-rw-r--r-- | server/tests/api/object-storage/videos.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/tests/api/object-storage/videos.ts b/server/tests/api/object-storage/videos.ts index 6e6392181..b64efe0d5 100644 --- a/server/tests/api/object-storage/videos.ts +++ b/server/tests/api/object-storage/videos.ts | |||
@@ -213,6 +213,12 @@ function runTestSuite (options: { | |||
213 | } | 213 | } |
214 | }) | 214 | }) |
215 | 215 | ||
216 | it('Should fetch correctly all the files', async function () { | ||
217 | for (const url of deletedUrls.concat(keptUrls)) { | ||
218 | await makeRawRequest(url, HttpStatusCode.OK_200) | ||
219 | } | ||
220 | }) | ||
221 | |||
216 | it('Should correctly delete the files', async function () { | 222 | it('Should correctly delete the files', async function () { |
217 | await servers[0].videos.remove({ id: uuidsToDelete[0] }) | 223 | await servers[0].videos.remove({ id: uuidsToDelete[0] }) |
218 | await servers[1].videos.remove({ id: uuidsToDelete[1] }) | 224 | await servers[1].videos.remove({ id: uuidsToDelete[1] }) |