]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add object storage test
authorChocobozzz <me@florianbigard.com>
Tue, 12 Oct 2021 13:36:44 +0000 (15:36 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 12 Oct 2021 13:36:44 +0000 (15:36 +0200)
server/tests/api/object-storage/videos.ts

index 6e639218169b57988ef83d925bcd9b4828b6c94e..b64efe0d5ca62cd4c32f4229bd349ef6979aba07 100644 (file)
@@ -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] })