From c31bca52c103485215ee823a90da14c8db49c580 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 10 Sep 2021 14:35:15 +0545 Subject: [PATCH] uncomment missing ubucket id test --- .../Services/Storage/StorageConsoleClientTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/e2e/Services/Storage/StorageConsoleClientTest.php b/tests/e2e/Services/Storage/StorageConsoleClientTest.php index 4ec1a6ce9a..de7627cd75 100644 --- a/tests/e2e/Services/Storage/StorageConsoleClientTest.php +++ b/tests/e2e/Services/Storage/StorageConsoleClientTest.php @@ -61,14 +61,14 @@ class StorageConsoleClientTest extends Scope // TODO: Uncomment once we implement check for missing bucketId in the usage endpoint. - // $response = $this->client->call(Client::METHOD_GET, '/storage/randomBucketId/usage', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'] - // ], $this->getHeaders()), [ - // 'range' => '24h' - // ]); + $response = $this->client->call(Client::METHOD_GET, '/storage/randomBucketId/usage', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders()), [ + 'range' => '24h' + ]); - // $this->assertEquals($response['headers']['status-code'], 404); + $this->assertEquals($response['headers']['status-code'], 404); /** * Test for SUCCESS