From 658cfee38eea720b6a20292e2a4545a3f375e4b1 Mon Sep 17 00:00:00 2001 From: shimon Date: Mon, 6 Mar 2023 18:28:40 +0200 Subject: [PATCH] Updates --- .../Videos/VideosCustomServerTest.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/e2e/Services/Videos/VideosCustomServerTest.php b/tests/e2e/Services/Videos/VideosCustomServerTest.php index 253ac84f66..aa4d6e5c0b 100644 --- a/tests/e2e/Services/Videos/VideosCustomServerTest.php +++ b/tests/e2e/Services/Videos/VideosCustomServerTest.php @@ -487,6 +487,20 @@ class VideosCustomServerTest extends Scope $this->assertEquals(204, $response['headers']['status-code']); } + sleep(20); + + /** + * Job list + */ + $response = $this->client->call(Client::METHOD_GET, '/videos/renditions', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(2, $response['body']['total']); + + return $videoId; } @@ -510,6 +524,11 @@ class VideosCustomServerTest extends Scope $renditionId = $response['body']['renditions'][0]['$id']; foreach ($response['body']['renditions'] as $rendition) { + $this->assertEquals('600X400@834', $rendition['name']); + $this->assertEquals('600', $rendition['width']); + $this->assertEquals('400', $rendition['height']); + $this->assertEquals('770', $rendition['videoBitRate']); + $this->assertEquals('64', $rendition['audioBitRate']); $this->assertEquals('ready', $rendition['status']); $this->assertEquals('100', $rendition['progress']); }