From 8d41eff84a44d275be9c07e19b372afdf65c7965 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 28 Jul 2021 14:59:38 +0545 Subject: [PATCH] fix storage bucket file webhooks tests --- tests/e2e/Services/Webhooks/WebhooksBase.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/e2e/Services/Webhooks/WebhooksBase.php b/tests/e2e/Services/Webhooks/WebhooksBase.php index f98970aaf1..e25a718b72 100644 --- a/tests/e2e/Services/Webhooks/WebhooksBase.php +++ b/tests/e2e/Services/Webhooks/WebhooksBase.php @@ -245,6 +245,8 @@ trait WebhooksBase 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'name' => 'Test Bucket', + 'read' => ['role:all'], + 'write' => ['role:all'] ]); $this->assertEquals($bucket['headers']['status-code'], 201); @@ -311,7 +313,7 @@ trait WebhooksBase /** * @depends testCreateStorageBucket */ - public function testCreateFile(array $data): array + public function testCreateBucketFile(array $data): array { /** * Test for SUCCESS @@ -356,9 +358,9 @@ trait WebhooksBase } /** - * @depends testCreateFile + * @depends testCreateBucketFile */ - public function testUpdateFile(array $data): array + public function testUpdateBucketFile(array $data): array { /** * Test for SUCCESS @@ -397,9 +399,9 @@ trait WebhooksBase } /** - * @depends testUpdateFile + * @depends testUpdateBucketFile */ - public function testDeleteFile(array $data): array + public function testDeleteBucketFile(array $data): array { /** * Test for SUCCESS @@ -435,7 +437,7 @@ trait WebhooksBase } /** - * @depends testCreateStorageBucket + * @depends testDeleteBucketFile */ public function testDeleteStorageBucket(array $data) {