From 87699a09ce714ceb79dbd846fac0de37a57fe6e3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Oct 2021 15:36:44 +0200 Subject: [PATCH] Add object storage test --- server/tests/api/object-storage/videos.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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: { } }) + it('Should fetch correctly all the files', async function () { + for (const url of deletedUrls.concat(keptUrls)) { + await makeRawRequest(url, HttpStatusCode.OK_200) + } + }) + it('Should correctly delete the files', async function () { await servers[0].videos.remove({ id: uuidsToDelete[0] }) await servers[1].videos.remove({ id: uuidsToDelete[1] }) -- 2.41.0